on the go way git push 403 error

Posted wjonedream+追梦or old+MGTDXR

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了on the go way git push 403 error相关的知识,希望对你有一定的参考价值。

在使用git push的时候产生这种情况 

error: The requested URL returned error: 403 while accessing https://github.comgit/info/refs

 

  1. edit .git/config file under your repo directory
  2. find url=entry under section [remote "origin"]
  3. change it from url=https://[email protected]/derekerdmann/lunch_call.git to url=ssh://[email protected]/derekerdmann/lunch_call.git. that is, change all the texts before @ symbol to ssh://git
  4. Save config file and quit. now you could use git push origin master to sync your repo on GitHub

以上是关于on the go way git push 403 error的主要内容,如果未能解决你的问题,请参考以下文章