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
tips:
本文由wp2Blog导入,原文链接:http://devonios.com/can-i-store-the-git-folder-outside-the-files-i-want-tracked-stack-overflow.html