PERSONAL ACCESS TOKEN ON GITHUB
PERSONAL ACCESS
TOKEN ON GITHUB
PURPOSE
While doing git clone or git pull if you face and issue and getting below error
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
You have to create a personal access token with your git handle. Authentic in terminal with this PAT ( personal access token)
REASON
While doing any git operation, now GitHub is not accepting authentication with password
You need to add PAT.
Follow below steps to create PAT and authenticate on your local machine
STEPS
CREATE PERSONAL ACCESS TOKEN
Login to GitHub from the browser.
Go to Settings - > Developer setting -> Personal access token -> Create new token
Authenticate
Full out required fields
Select expiration period
We want to access the repository from the command line. For this don't forget to select "repo" option
Click "Generate token"
Copy generated token.
Your tokens are like your password. Keep them secret
USING THE TOKEN ON COMMAND LINE
Go to terminal
$ git clone your_httpsgit_url
Username : your_GitHub_username
Password : your_generated_token
Comments
Post a Comment