$ git push
error: The requested URL returned error: 403 Forbidden while accessing https://github.com/HarryWei/hummer.git/info/refs
fatal: HTTP request failed
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 by harryxiyou.