- Published on
Authentication failed in Github
- Authors
- Name
- hwahyeon
I was unable to run git pull
on new computer in the office and encountered the following message:
remote: Support for password authentication was removed on August 13, 2021.
remote: Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
fatal: Authentication failed for 'https://github.com/username/repo.git/'
This message indicates that GitHub no longer supports authentication using a username and password when interacting with a remote repository. Instead, you are required to use a Personal Access Token (PAT).
To resolve this, follow these steps to generate and register a token:
- Go to GitHub Settings > Developer settings > Personal access tokens > Generate new token.
- Once you've generated the token, you can configure it in your local Git setup with the following commands:
git config --global user.name 'your-github-id'
git config --global user.password 'your-token'