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

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

    I actually had a very simple fix to this. All i did was edit the git config file differently after cloning the repository. The remote origin url is what you need to edit in your default config file. It should look like seen below

    [core]
        repositoryformatversion = 0
        filemode = true
        bare = false
        logallrefupdates = true
    [remote "origin"]
        fetch = +refs/heads/*:refs/remotes/origin/*
        url = https://*username*@github.com/*username*/*repository*.git
    [branch "master"]
        remote = origin
        merge = refs/heads/master
    

提交回复
热议问题