Remembering HTTPS Authentication in git

Quick tip for anyone who is wanting git to remember their username/password when issuing push/pulls to a git repository over HTTPS, run the following:

git config credential.helper store

This will remember your username and password by storing in a plaintext file in ${HOME}/.git-credentials.

Disclaimer: Only do this if you know your home directory is secure from other users!

Source