You must enable Javascript on your browser for the site to work optimally and display sections completely.

Permanently Authenticating with Git Repositories

Turn on the credential helper so that Git will save your password in memory for some time. By default, Git will cache your password for 15 minutes.

In Terminal, enter the following:

$ git config --global credential.helper cache 
# Set git to use the credential memory cache
By default, this will only cache your credentials for 15 minutes. To increase the time that your credentials will be saved, enter the following:
$ git config --global credential.helper 'cache --timeout=3600'
# Set the cache to timeout after 1 hour (setting is in seconds)

If you want a more permanent solution, it is recommended that you clone your repositories using SSH and use your public and private keys for authentication.

comments powered by Disqus

github ssh credentials authentication clone git

Views: 1110