However ,one command :
git --git-dir=/path/to/repo.git --work-tree=. init && echo "gitdir: /path/to/repo.git" > .git
来源: Can I store the .git folder outside the files I want tracked? – Stack Overflow
了解 工作生活心情记忆 的更多信息
订阅后即可通过电子邮件收到最新文章。
好记性不如烂笔头
However ,one command :
git --git-dir=/path/to/repo.git --work-tree=. init && echo "gitdir: /path/to/repo.git" > .git
来源: Can I store the .git folder outside the files I want tracked? – Stack Overflow
订阅后即可通过电子邮件收到最新文章。