how to set a github token for github pages deploy


Until a few days ago I was deploying my html on Github pages with:
ng deploy --base-href=/documentation/

Today I get this error: "remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see for more information.
fatal: unable to access ‘’: The requested URL returned error: 403"

I have set a token on my github settings, but I don’t understand how to use it to deploy my pages. How should this be done?


I discovered 2 ways:

  1. use the token when the IDE prompt asks for the password. I have tested this end it works.
  2. set keys. (I have not tested this).

Answered By – mb925

Answer Checked By – Marie Seifert (AngularFixing Admin)

Leave a Reply

Your email address will not be published.