Git clone with set ssh
Set environment variable GIT_SSH_COMMAND
GIT_SSH_COMMAND="ssh -i ~/.ssh/id_rsa_my" git clone [email protected]/repo.git
Configuration core.sshCommand
git config core.sshCommand "ssh -i ~/.ssh/id_rsa_my -F /dev/null"
git pull
git push
Configuration with ~/.ssh/config
Host github.com
User git
Hostname github.com
IdentityFile ~/.ssh/id_rsa_my