Skip to content

Instantly share code, notes, and snippets.

@smattingly
Last active September 3, 2019 22:04
Show Gist options
  • Save smattingly/8350f90af596346acdd683c186a57a26 to your computer and use it in GitHub Desktop.
Save smattingly/8350f90af596346acdd683c186a57a26 to your computer and use it in GitHub Desktop.
Configure git client for easier use

Configure your git client for easier use

Replace the example values in the following commands with your own information.

git config --global user.name "Jane Doe"
git config --global user.email jdoe@dewv.net
git config --global credential.helper 'cache --timeout 5400'
git config --global credential.https://github.com.username jdoe@dewv.net

What this does

These commands store your name, email, and github username so that you don't have to keep typing them. Also, git is configured to cache your github password for 90 minutes, so that you don't have to repeatedly type it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment