main About Musing Back to Blog Contact
Have you encountered this message when attempting to git push
?
remote: Support for password authentication was removed on August 13, 2021. remote: Please see https://docs.github.com/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication. fatal: Authentication failed for ‘https://github.com/desirajusantosh/<>’ text
Don’t worry! GitHub has transitioned to more secure authentication methods. Here’s how to resolve this issue using a Personal Access Token (PAT):
Once you have your PAT, you can use it in place of your password for Git operations:
git clone https://your-personal-access-token@github.com/username/repo.git
Create a file at ~/.git-credentials with this line: https://{username}:{personal_access_token}@github.com Run: git config –global credential.helper store