在使用git push的时候产生这种情况
error: The requested URL returned error: 403 while accessing https://github.comgit/info/refs
- edit
.git/config
file under your repo directory - find
url=
entry under section[remote "origin"]
- change it from
url=https://MichaelDrogalis@github.com/derekerdmann/lunch_call.git
tourl=ssh://git@github.com/derekerdmann/lunch_call.git
. that is, change all the texts before@
symbol tossh://git
- Save
config
file and quit. now you could usegit push origin master
to sync your repo on GitHub