How to Implement git push 403

Source: Internet
Author: User

When you create a github.com project, error 403 is always prompted during push:

[Amonest @ localhost ~] $ Git config -- Global user. Name amonest [amonest @ localhost ~] $ Git config -- Global user. Email xxx@xxx.com [amonest @ localhost ~] $ Git clone https: //  Github.com/amonest/python-scripts.git [Amonest @ localhost ~] $ CD Python- Scripts... omitted in the middleCodeModification Process... [amonest @ localhost Python -Scripts] $ git remote add orginal https: //  Github.com/amonest/python-scripts.git [Amonest @ localhost Python-Scripts] $ git push orginal mastererror: the requested URL returned error:  403   While Accessing https: //  Github.com/amonest/python-scripts.git/info/refs  Fatal: http request failed 

 

After searching for the Internet for a long time, I finally found a solution: Pushing to git returning error code 403 fatal: http request failed

 
[Amonest @ localhost Python-Scripts] $ git remote set-URL orginal https://Amonest@github.com/amonest/python-scripts.git[Amonest @ localhost Python-Scripts] $ git push orginal master

Wait a moment and you will be prompted to enter the password:

 

In this case, OK.

 

Git-related documents:

    • Git-practice-GitHub
    • SSH key switching for multiple GitHub accounts
    • Http://zikercn.com/taxonomy/term/16
    • Http://zikercn.com/taxonomy/term/13
    • Http://help.github.com/win-set-up-git/
    • Http://help.github.com/multiple-ssh-keys/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.