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

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

    Just add you username into url like this : https://islam9@github.com/islam9/bootstrap-rtl

    please check: http://islamkhalil.wordpress.com/2012/12/06/github-error-pushing-to-git-returning-error-code-403-fatal/

    0 讨论(0)
  • 2020-11-22 05:23

    Edit .git/config file under your repo directory

    Find url= entry under section [remote "origin"]

    Change it from url=https://github.com/rootux/ms-Dropdown.git to https://USERNAME@github.com/rootux/ms-Dropdown.git

    where USERNAME is your github user name

    0 讨论(0)
  • 2020-11-22 05:23
    1. Click on your repository
    2. On the right hand side, click on "Settings"
    3. On the left hand side option panel, click on "Collaborators"
    4. Add the person name you know in GitHub
    5. Click "Add Collaborators"

    After this our "Push to Git" worked fine.

    0 讨论(0)
  • 2020-11-22 05:27

    I had this problem right now, and it turned out that my server /etc/resolver.conf file had a bad ip address. Might help others.

    0 讨论(0)
  • 2020-11-22 05:28

    change it from

    url=https://MichaelDrogalis@github.com/derekerdmann/lunch_call.git 
    

    to

    url=ssh://git@github.com/derekerdmann/lunch_call.git
    

    It works!

    Do not forget the "git" before the "@".

    0 讨论(0)
  • 2020-11-22 05:28

    I figured out my own variation of this problem.

    The issue was not changing the protocol from https to ssl, but instead, setting the Github global username and email! (I was trying to push to a private repository.

    git config --global user.email "your_github_email_@email.com"
    
    git config --global user.name "Your full name"
    
    0 讨论(0)
提交回复
热议问题