-
生成**对
ssh-****** -t rsa -C "[email protected]" -
复制
./ssh/id_rsa.pub到github/account/ssh -
添加全局设置
git config --global user.email “[email protected]”git config --global user.name “williamlfang” -
进行一次验证操作(确认时输入
yes)ssh -T [email protected] -
git push就可以直接推送到仓库了,不需要每次都输入用户名和密码了
参考文章:Github使用SSH免密码登录
相关文章: