📜  git change ssh key - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:34.954000             🧑  作者: Mango

代码示例1
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