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

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

    Add the user name as part of the URL and This error happens because the git command is hitting http instead of https. So set the url

    git remote set-url origin https://@github.com/Path_to_repo.git
    

    After which you will be prompted for password:

提交回复
热议问题