windows git ssh key code example
Example 1: git change ssh key
git config core.sshCommand "ssh -i ~/.ssh/id_rsa_example -F /dev/null"
git pull
git push
# Other way
edit .git/config file like:
[core]
sshCommand = ssh -i ~/.ssh/id_rsa_example -F /dev/null
Example 2: terminal git add ssh key
$ ssh-add ~/.ssh/id_rsa
Example 3: terminal git add ssh key
$ eval "$(ssh-agent -s)"
> Agent pid 59566