Skip to content

Instantly share code, notes, and snippets.

Created August 15, 2021 09:31
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Create Personal Access Token on Github
From your Github account, go to Settings => Developer Settings => Personal Access Token => Generate New Token (Give your password) => Fillup the form => click Generate token => Copy the generated Token, it will be something like ghp_sFhFsSHhTzMDreGRLjmks4Tzuzgthdvfsrta
Now follow below method based on your machine:
For Windows OS
Go to Credential Manager from Control Panel => Windows Credentials => find git: => Edit => On Password replace with with your Github Personal Access Taken => You are Done
Click on the Spotlight icon (magnifying glass) on the right side of the menu bar. Type Keychain access then press the Enter key to launch the app => In Keychain Access, search for => Find the internet password entry for => Edit or delete the entry accordingly => You are done
For Linux based OS
For Linux, You need to configure the local GIT client with a username and email address,
$ git config --global ""
$ git config --global ""
$ git config -l
Once GIT is configured, we can begin using it to access GitHub, In a examle :
$ git clone
> Cloning into `Spoon-Knife`...
$ Userame for '' : username
$ Password for '' : give your personal access token here
Now cache the given record in your computer to remembers the token :
$ git config --global credential.helper cache
If needed, anytime you can delete the cache record by :
git config --global --unset credential.helper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment