By default, I typically run git init
and have the local repository in the root directory. I store and work with my project files on a small-ish SSD but have a BIG ol' SATA HD on the same machine not doing much. I was thinking I should get into the practice of using it for the actual repositories for each project.
EDIT:
By this I mean I have the directory structure:
SMALL-DRIVE > My Project > .git > repository files...
SMALL-DRIVE > My Project > src > dev files...
and while I'd like the keep the 2nd one as is, I want to move the 1st one to
BIG-DRIVE > repositories > My Project > .git > repository files... (or something similar)
Everything is staying on the same machine and there would be no change to the remote repository that I push to.
I believe I can pass git init
this new path for new projects (pretty sure I can figure that out on my own), but is there a way to update an existing config to use the new path? And if so, is there a command that will move the current files in the repository or would I just manually move the .git directory?