git-credential-cache is a useful tool to remember your HTTP/HTTPS git credentials (though you really should be using SSH instead). It’s useful when using long passwords or access tokens. It stores them in memory for a specific amount of time.
$ git config --global credential.helper cache
$ git config --global credential.helper 'cache --timeout=600'
$ git config --global --unset credential.helper