手摸手教你git配置ssh

相信大家都遇到过向自己git提交代码的时候说你没有权限如图: 报出这个错误的原因就是因为你没有配置ssh这个公钥,所以提交不上去。 1.提交前准备工作 首先设置自己的邮箱和名字,  设置 邮箱:git config --globar user.email "[email protected]",  设置名字:git config --global user.name "YourName", 如图:
相关文章
相关标签/搜索