配置 core.sshCommand:

从 Git 版本 2.10.0 开始, 可以通过这个配置配置全局或者个别仓库使用的key了

git config core.sshCommand "ssh -i ~/.ssh/id_rsa_example -F /dev/null"
git pull
git push

Copy

本条目发布于[2021年5月19日](https://c4ys.com/archives/2577 "01:17")。属于[Tools](https://c4ys.com/archives/category/tools)分类,被贴了 [git](https://c4ys.com/archives/tag/git) 标签。