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

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.

Weiwei Jia

Weiwei Jia is a Ph.D. student in the Department of Computer Science at New Jersey Institute of Technology since 2016. His research interests are include storage systems, operating systems and computer systems.

Leave a Reply

Your email address will not be published. Required fields are marked *