Skip to content

Instantly share code, notes, and snippets.

@jakobii
Last active November 18, 2018 07:45
Show Gist options
  • Save jakobii/5a42f12896dd4fe7644ccd28b46dc9fb to your computer and use it in GitHub Desktop.
Save jakobii/5a42f12896dd4fe7644ccd28b46dc9fb to your computer and use it in GitHub Desktop.
Permanently Persist Git Credentials

use curl credentials

replace with your info.

printf "machine <server>\nlogin <username>\npassword <password>\n" > ~/_netrc

example:

printf "machine github.com\nlogin foo\npassword bar\n" > ~/_netrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment