Skip to content

Instantly share code, notes, and snippets.

@josejuansanchez
Last active August 29, 2015 14:21
Show Gist options
  • Save josejuansanchez/e700a6ef47d0409a4b42 to your computer and use it in GitHub Desktop.
Save josejuansanchez/e700a6ef47d0409a4b42 to your computer and use it in GitHub Desktop.
[Git] Don’t type your password every time

If you’re using an HTTPS URL to push over, the Git server will ask you for your username and password for authentication. By default it will prompt you on the terminal for this information so the server can tell if you’re allowed to push.

If you don’t want to type it every single time you push, you can set up a “credential cache”. The simplest is just to keep it in memory for a few minutes, which you can easily set up by running:

git config --global credential.helper cache.

For more information on the various credential caching options available, see “Credential Storage”.

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