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 creates .git directory in work-tree directory. I want to locate .git directory out of my work-tree directory, how to do it?
リポジトリを作成またはクローンした後、.git-directory 構造を別の場所に移動し、代わり.gitにその場所を指す -file を追加できます。たとえば、ディスクに並べて保存している場合は、次の内容で -file を作成git-test-wtします。git-test-repogit-test-wt/.git
.git
git-test-wt
git-test-repo
git-test-wt/.git
gitdir: ../git-test-repo