Setting the ssh key for a git clone
I was setting up a development environment on Windows today to make an in house script for someone who needed some code to run on windows machines. I ran into the slightly annoying scenario when cloning a Git repository that the default SSH key that was being used was not the one I needed for that host.
To get around this I had to use the following command:
git clone -c core.sshCommand="shh -i ~/ssh/the_key_I_actually_wanted" email@example.com/example-repo.git
By Janis Lesinskis