git、github、ssh免密链接、git push
-
生成**对
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免密码登录