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