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
It is possible to have a Git repository directory in a different location than the root of your working copy, but I'm not sure if it works across drives.
You can set the repo directory to be placed in a different directory while cloning with the --separate-git-dir flag:
$ git clone --separate-git-dir= \
For a repo that's already been cloned, you might be able to set a different path for the repo and/or working copy with the --git-dir=
You might also want to check out the core.worktree configuration.