Generating a Personal Access Token on GitHub

GitHub removed password authentication on August 13, 2021. As a result, you'll need to use a personal access token for GitHub operations. This tutorial will guide you through generating a personal access token and using it in place of your password on GitHub.

Follow these steps to generate a personal access token:

  1. Open your web browser and go to GitHub at https://github.com. Log in to your account if you're not already logged in.
  2. Click on your profile picture in the top-right corner of the GitHub page. From the dropdown menu, select 'Settings'.
  3. Click on 'Developer settings' in the left sidebar of the Settings page.
  4. On the Developer settings page, click on 'Personal access tokens'.
  5. From the dropdown menu, select 'Tokens(classic)'.
  6. Under the Personal access tokens (classic), Click on 'Generate a personal access token'.
  7. Enter your password if you are prompted to log in.
  8. Enter a descriptive name in the 'Note' field to help you remember the purpose of this token.
  9. Scroll down to the 'Select scopes' section. Scopes define what permissions the token will have. Choose the scopes based on the actions you intend to perform using the token. Be cautious and only select the permissions you truly need.
  10. After selecting appropriate scopes, click the "Generate token" button at the bottom of the page.
  11. Next, when the token is generated, make sure to copy it to a safe place, as you won't be able to see it again.

Keep your token safe, similar to a password. Avoid sharing it openly or using it for public repository commits. If you suspect someone might have gained access to your token, you can come here and revoke it.