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/