git config - ThuyNT13/my_setup GitHub Wiki

Because I can't figure out how to make SSH work, yet, configuring Git to store credentials:

$ git config --global credential.helper cache

Optional parameter of setting timeout if you want to enter your credentials after sessions timeout after say 5 hours, for extra security.

$ git config --global credential.helper 'cache --timeout=1800' # 1800 seconds = 5 hours (360 seconds = 1 hour)

for Windows:

$ git config --global credential.helper wincred

References