Skip to content

Instantly share code, notes, and snippets.

@lek890
Created June 30, 2021 18:42
Show Gist options
  • Save lek890/988208d77f9bc1963e28f69717d21052 to your computer and use it in GitHub Desktop.
Save lek890/988208d77f9bc1963e28f69717d21052 to your computer and use it in GitHub Desktop.

How to use personal tokens to connect to github from local.

  1. generate the tokens in the profile settings with necessary permissions
  2. use the following in local git remote set-url origin https://<TOKEN>@github.com/<ORG or USERNAME>/<REPO>.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment