ssh 免密码登录git

参考文章https://www.jianshu.com/p/601735ce7113

实际操作中注意事项

git config --global user.name "account name"     ->用户名,建议拼音或英文

git config --global user.email "account email"     ->邮箱地址

以上两步没有执行

ssh-keygen -t rsa -C "account email"   

这一步没有输入后面的引号,

如果之前项目已经是通过http方式拉去的,可以进入项目内 修改 .git/config 文件中的 remote地址为ssh地址即可

原文地址:https://www.cnblogs.com/WhiteHorseIsNotHorse/p/11727075.html