How to install -work-tree or - git -dir in smartgit?

Smartgit creates the .git directory in the work tree directory. I want to find the .git directory from my working tree directory, how to do this?

+4
source share
1 answer

After creating or cloning your repository, you can move the .git - .git structure to another location and instead add the .git file that points to that location. For instance. if you have git-test-wt and git-test-repo saved side by side on your disk, create a git-test-wt/.git file with the following contents:

 gitdir: ../git-test-repo 
+4
source

Source: https://habr.com/ru/post/1439295/


All Articles