git push出现403错误怎么办

2025-05-12 23:18:44
推荐回答(1个)
回答1:

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.gitto url=ssh://git@github.com/derekerdmann/lunch_call.git. that is, change all the texts before @ symbol to ssh://git
Save config file and quit. now you could use git push origin master to sync your repo on GitHub