Github HTTPS push 403 error

April 29, 2014 26.7k views
I am able to clone repos just fine using https: $ git clone but when I go to push commits it gives me this error: $ git push error: The requested URL returned error: 403 Forbidden while accessing It's probably something really simple, but any help would be appreciated. Thanks! Sean
4 Answers
See here, this might help.
Check out
I recommend pushing via SSH instead as using HTTPS requires you to enter your credentials each time you push. You can do that by generating SSH keys if you haven't already:
ssh-keygen -t rsa -b 2048 -N ""
and adding the public key to your Github account:
cat ~/.ssh/
If the above steps doesn't work, check whether there is port blocked. Ask your firewall team to open the same.

try changing your remote server name from to
by following command:

$ git remote set-url origin

and then push

Have another answer? Share your knowledge.