Pushing to Git returning Error Code 403 fatal: HTTP request failed

后端 未结 30 1655
轻奢々
轻奢々 2020-11-22 04:52

I was able to clone a copy of this repo over HTTPS authenticated. I\'ve made some commits and want to push back out to the GitHub server. Using Cygwin on Windows 7 x64.

30条回答
  •  醉梦人生
    2020-11-22 05:01

    One small addition to Sean's answer.

    Instead of editing .git/config file manually, you can use git remote set-url command.

    In your case it should be:

    git remote set-url origin ssh://git@github.com/derekerdmann/lunch_call.git
    

    I find it easier and cleaner, than messing around with dot-files.

    • help.github.com: Changing a remote's URL

提交回复
热议问题