GitHub – Support for password authentication was removed.

While accessing the GitHub repository (Eg: git pull or git push) through git bash I was getting below error.

Username for 'https://github.com': prahlad-dutta
Password for 'https://prahlad-dutta@github.com': 
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.

To fix this issue I found the solution on the forum, here is mentioned the steps to configure the authentication token for GitHub access.

GitHub has removed support for password authentication while working with GitHub repository through git bash from 13 August 2021. Need to use access token instead. Please refer https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.

Solution

Create Personal Access Token on Github

  1. Open GitHub account.
  2. Go to Settings
  3. Click on Developer Settings
  4. Then click on Personal Access Token
  5. Click on Generate New Token button.
  6. Now fill the form and click Generate token.
  7. Now Copy the generated token.

For Windows OS

  1. Go to Credential Manager from Control Panel
  2. Click on Windows Credentials
  3. Now find git:https://github.com and click Edit
  4. Replace password with your Github Personal Access Token and save.

Reference:

https://stackoverflow.com/questions/68775869/support-for-password-authentication-was-removed-please-use-a-personal-access-to