cat .git/config
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
sshCommand = ssh -i ~/.ssh/id_rsaa -F /dev/null
非常简单, 直接在配置文件里面添加sshCommand这一行
~/.ssh/id_rsaa 就是你想指定的私钥
cat .git/config
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
sshCommand = ssh -i ~/.ssh/id_rsaa -F /dev/null
非常简单, 直接在配置文件里面添加sshCommand这一行
~/.ssh/id_rsaa 就是你想指定的私钥