Pushing to Git returning Error Code 403
本地包含多个仓库和多个账户,在新的 GitHub 地址里创建工程修改提交的时候,报错解决方案,重新配置remote url
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
to:url=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.
评论