Skip to content

Instantly share code, notes, and snippets.

@SalmonKing72
Created April 5, 2019 13:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SalmonKing72/8d24379be357a5ff4c164ac23ca0fddc to your computer and use it in GitHub Desktop.
Save SalmonKing72/8d24379be357a5ff4c164ac23ca0fddc to your computer and use it in GitHub Desktop.
cache git credentials

Since Git uses curl under the hood. It's possible to set up a ~/.netrc file with the credentials. For GitHub it would look something like this:

machine github.com
  login <github username>
  password <github oauth token>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment