Sometimes we would like to use a specific SSH key for a git command, this is how to do so.

GIT_SSH_COMMAND="ssh -i ~/.ssh/id_rsa_example -F /dev/null" git clone [email protected]

Here -F /dev/null is used to make sure that ssh doesn’t load any parameters from any of the ssh config files