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

后端 未结 30 1685
轻奢々
轻奢々 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:08

    What worked for me:

    My repo was a fork and still linked to the the parents repo.

    git remote -v
    

    Will tell you if it is your repo or not.

    git remote set-url origin https://github.com/USERNAME/OTHERREPOSITORY.git
    

    Allows you to reconfigure it to your repo and then allow you to push.

提交回复
热议问题