I have my source code and .git folder on a small fast ssd, I would like to have the .git directory on my second bigger slower hdd and keep my working code on my fast smaller ssd, is it possible? how? thanks.
I guess my local working copy .git directory will grow as time goes (with the new versions) and so it make sens to have it on my bigger local hdd. The working copy doesn't grow as fast so it makes sens on the ssd as it can compile faster.
The other interesting bonus is I will then have the source code (working code and .git repo) on 2 diff drives which is more protection for a laptop....
I'm using windows
.gitdirectory/repo also contains your source code. Also, why do you even want to do this? It is possible to have a working copy in a separate directory from the.gitrepo directory, but I'm not sure if it works across drives. Are you trying to save space on your SSD? The.gitrepo is actually compressed, and will be smaller than your working copy. You may also get decreased performance if the repo is separate on your HDD. – user456814 Jul 28 '13 at 22:27