I have successfully installed and configured msysGit Portable on my flash drive, and have used it to pull and push GitHub repos. However, I seem to always have to kludge the SSH support.
Specifically, in order for SSH to find my key files, I have to follow these instructions to start a second instance of ssh-agent
and then ssh-add
my key every time I run git-bash.bat.
Using the output of ssh -v [email protected]
to debug I see that msysGit defaults to my Windows user directory to look for keys. It can't do that; I need it to look in its own directory on the portable drive.
How can I force $HOME to be the program's own folder?