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
了解 工作生活心情记忆 的更多信息
Subscribe to get the latest posts sent to your email.