Search code examples
gitgithubtokengithub-apigit-pull

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


I was using a username password for pushing my code. It was working for several months, but suddenly I'm not able to do it and am getting this error:

Username for 'https://github.com': shreyas-jadhav
Password for 'https://[email protected]':
remote: Password authentication is temporarily disabled as part of a brownout. Please use a personal access token instead.
remote: Please see https://github.blog/2020-07-30-token-authentication-requirements-for-api-and-git-operations/ for more information.

Please note that the link doesn't help. Even using the generated token doesn't help.

Moderator Note: This is part of a planned and soon-to-be permanent service change by GitHub


Solution

  • The previously accepted answer, Kusal Shrestha's, does the job, but it is not safe because we store the token in plain text.

    Storing it in the keychain is the better approach in my honest opinion.

    For Visual Studio Code please read crg's answer.

    For Windows:

    You can try the @Venryx comment below, but I haven't tested it.


    For Mac:

    I just faced this issue now

    Enter image description here

    As suggested, I went to the development settings by following this URL and generated a token.

    Then I went to my key chain access in my Mac:

    Enter image description here

    I deleted (all) the row for GitHub

    Enter image description here

    Now I went to the terminal and pushed dummy code

    git push
    

    Terminal asked me to enter the email and password for my account.

    I entered my email, and, for the password, I entered the token that I generated earlier.

    Enter image description here

    And it started to work again.