Press "Enter" to skip to content

Github push提交 403 forbidden

$ git push

error: The requested URL returned error: 403 Forbidden while accessing





To definitely be able to login using https protocol, you should first set your authentication credential to the git Remote URI:

git remote set-url origin

Then you’ll be asked for a password when trying to git push.

In fact, this is on the http authentication format. You could set a password too:

You should be aware that if you do this, your github password will be stored in plaintext in your .git directory, which is obviously undesirable.

Comments are closed.