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://MichaelDrogalis@github.com/derekerdmann/lunch_call.git to url=ssh://git@github.com/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

posted on 2016-03-22 20:32  AAAAAApple  阅读(104)  评论(0编辑  收藏  举报

导航