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

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

    what worked for me is changing from http to ssh:

    git remote rm origin
    git remote add origin git@github.com:username/repoName.git
    

    then check it with git remote -v

提交回复
热议问题