Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Smartgit 在工作树目录中创建 .git 目录。我想从我的工作树目录中找到 .git 目录,该怎么做?
创建或克隆存储库后,您可以将.git-directory 结构移动到其他位置,而是添加.git指向该位置的 -file。例如,如果您在磁盘上git-test-wt并排git-test-repo存储,请创建git-test-wt/.git具有以下内容的 -file:
.git
git-test-wt
git-test-repo
git-test-wt/.git
gitdir: ../git-test-repo