I don’t think this is possible without a bit of hacking but just throwing it out there.
In Git is it possible to relocate the bulk of the .git folder (/objects i assume) to another location. I am having a problem without my current hard drive filling up with git and i want to be able to move it to a separate hard drive to free up space.
There are three possibilities I can think of:
GIT_DIRenvironment variable tells Git where to look for the repository. The default is.git, obviously, but you can also set it to/some/where/else, if you want.GIT_OBJECT_DIRenvironment variable does the same, but just for the.git/objectssubdirectory, not the whole repository..git/objects/info/alternatesor the environment variable$GIT_ALTERNATE_OBJECT_DIRECTORIESto "borrow" objects from another repository.See the git-repositorylayout(5) manual page for details.