Skip to content

Instantly share code, notes, and snippets.

@HarunMbaabu
Created August 15, 2021 17:33
Show Gist options
  • Save HarunMbaabu/28d114ddf3acc421b1c530fec3cae8e7 to your computer and use it in GitHub Desktop.
Save HarunMbaabu/28d114ddf3acc421b1c530fec3cae8e7 to your computer and use it in GitHub Desktop.
Github has made changes in password authentication. If you are trying to access git by username and password then it does not allow you. So use a personal access token instead of a password to access git.
Here are steps to generate Personal access tokens.
Click Here - https://github.com/settings/tokens
Step 1 - Open GitHub and log in with your credentials.
Step 2 - Click on the Setting menu.
Step 3 - From the Setting menu click on Developer Settings
Step 4 - From the Developer Settings, menu click on Personal access token
Step 5- From the Personal access token click on the Generate new Token button.
Step 6 - Now fill up required details like Note, Expiration, Select scopes. And then click on below Generate Token button.
Step 7 - After that new token has been generated. Copy that generated token and use this token to access git with username and token.
If you are using **WINDOWS** then please follow below step:
Open Control Panel => User Accounts => Manage your credentials => Windows Credentials.
It will show all generic credentials. find your GitHub URL and click on that Now click on the edit button. and then add the Personal access token generated from GitHub into the password filed. And click on save.
Now you can access git.
If you are access git in android studio, if ask for a password then add GitHub Personal access token instead of your password.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment