git push error

$ git push
error: The requested URL returned error: 403 Forbidden while accessing https://github.com/HarryWei/hummer.git/info/refs

fatal: HTTP request failed

asked Jun 17, 2015 by harryxiyou (5,740 points)

1 Answer

 
Best answer

Replace (or add) url=ssh://git@github.com/HarryWei/hummer.git with url=https://git@github.com/HarryWei/hummer.git under "[remote "origin"]" section in ~/.gitconfig file.

Reference:
http://stackoverflow.com/questions/7438313/pushing-to-git-returning-error-code-403-fatal-http-request-failed

answered Jun 17, 2015 by harryxiyou (5,740 points)

Please log in or register to answer this question.

Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost

...