[Solved] remote: Password authentication is temporarily disabled as part of a brownout. Please use a personal access token instead - Github

Article Sharif Ahmed

While performing git operation you may face an error that says,

remote: Password authentication is temporarily disabled as part of a brownout. Please use a personal access token instead

As Github has removed password authentication for HTTPS private repository, to perform git operations like pull, push, clone you have to use Personal Access Token instead of password. In this article, we will show a quick and simple solution for the issue.

Step 1: Delete your previous credentials

As password authentication is removed, first remove the previous credentials saved in your computer.

For windows,

$ git credential-manager reject https://github.com

For macOS,

$ git credential-osxkeychain erase https://github.com


Step 2: Generate Personal Access Token

Then, you have to generate a personal access token from your Github profile

  • Log in to your GitHub account
  • Click on the Profile logo on the top right corner
  • Click on Settings
  • Then, Click on Developer settings for the left sidebar
  • Next, Click on Personal access tokens for the left sidebar
  • After that, Click on Generate new token
  • Give your token a descriptive name on the Note field
  • Select Expiration time and preferred scopes
  • Click on Generate token
  • Finally, you can copy that token and use it to authenticate. You can use the token instead of a password for Git over HTTPS or can use it to authenticate to the API over Basic Authentication.


Step 3: Use personal access token

You can use your personal access token to update the project remote URL

$ git remote set-url origin https://[access_token]@github.com/[git_url]
$ git pull https://[access_token]@[git_url].git # run a test pull

Or, directly run the push command then you’ll be prompted for username and password. Use git username and personal access token as password.

$ git push origin master
Username: Enter your username
Password: Enter your access token

Thank you for reading the article. Hope this will solve your problem.