美文网首页
git push 时遇到的错误

git push 时遇到的错误

作者: Timemit | 来源:发表于2017-12-27 10:44 被阅读35次

github push错误:

remote: Permission to MrGCY/ThirdPartyShareLoginAndPay.git denied to JonJSON.
fatal: unable to access 'https://github.com/MrGCY/ThirdPartyShareLoginAndPay.git/': The requested URL returned error: 403

git版本:git version 2.10.1

解决办法:

1.使用终端命令
vim .git/config 打开文件
2.修改

[remote "origin"]
url = https://github.com/MrGCY/ThirdPartyShareLoginAndPay.git

改为

[remote "origin"]
url = https://MrGCY@github.com/MrGCY/ThirdPartyShareLoginAndPay.git

修改成功后保存并退出
然后再git push 输入仓库密码即可进行提交

相关文章

网友评论

      本文标题:git push 时遇到的错误

      本文链接:https://www.haomeiwen.com/subject/kvgygxtx.html