Skip to content

Instantly share code, notes, and snippets.

@sinamics
Created October 23, 2022 10:21
Show Gist options
  • Save sinamics/d6031fe0c66226d3806b5577ca226c06 to your computer and use it in GitHub Desktop.
Save sinamics/d6031fe0c66226d3806b5577ca226c06 to your computer and use it in GitHub Desktop.
Set github accesstoken globally
# add new .git-credentials file in userhome folder
nano ~/.git-credentials
# paste in your username and token generated from github.
# example:
https://<USERNAME>:<TOKEN>@github.com
# Reload github config helper
git config --global credential.helper store
# Now your git will use this token for every pull/push ect and no need to type in the credentials.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment