- français
- English
Can I store my password for the command line?
Temporarily store the password
Launch the following command :
$ git config --global credential.helper 'cache --timeout=300'
Notes :
- Git 1.7.9 or newer is required
- Timeout is the number of seconds to cache the password
Reference : http://git-scm.com/docs/git-credential-cache
Permanently store the password
Launch the following command :
$ git config --global credential.helper store
Notes :
- Git 1.7.9 or newer is required
- Your password is stored in clear text in your "home" directory, it's therefor important that you crypt it :
Reference : http://git-scm.com/docs/git-credential-store
Alternatives solutions
The GitHub client for Windows et Mac has a shell allowing you to store the password.
For more informations see the "Password caching" section for Windows and Mac.