XP-Dev.com Documentation

Getting Git To Remember Your Username and Password

You will need a Git client that is at least version 1.7.10 or later, as these have support for credential.helper.

To get your Git client to remember your username and password, and avoid re-entering it every time you access your repository over HTTPS, you can issue the following command to your Git client:

git config --global credential.helper cache

If you wanted Git to remember it for longer, you can do so by specifying a --timeout=:

git config --global credential.helper "cache --timeout=3600"

There are a few credential.helper implementations that can integrate directly with your operating system, and you may wish to try these as well:

Platform Tool
Windows Windows Credential Store for Git
Mac OS X Using a Git client installed from homebrew: git config --global credential.helper osxkeychain
Linux Gnome Keyring

Feel free to contact us if you need any assistance.