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

  1. While doing any git operation, now GitHub is  not accepting authentication with password 

  2. You need to add PAT.

  3. Follow below steps to create PAT and authenticate on your local machine

STEPS 

CREATE PERSONAL ACCESS TOKEN

  1. Login to GitHub from the browser.

  2. Go to Settings - > Developer setting -> Personal access token -> Create new token

  3. Authenticate

  4. Full out required fields

    1. Select expiration period

    2. We want to access the repository from the command line. For this don't forget to  select "repo" option

  5. Click "Generate token"

  6. Copy generated token.

  7. Your tokens are like your password. Keep them secret

USING THE TOKEN ON COMMAND LINE

  1. Go to terminal

  2. $ git clone your_httpsgit_url

Username : your_GitHub_username

Password : your_generated_token


Comments

Popular posts from this blog

PostgreSQL Commands

Rails Application with Docker