To set the credentials for the entire day that is 24 hours.
git config --global credential.helper 'cache --timeout 86400'
Else for 1 hour replace the 86400 secs to 3600.
OR
all configuration options for the 'cache' authentication helper:
git help credential-cache