Skip to content
BinaryPatrick
Go back

Git Credential Caching

Edit page

Having a local git repo configured, I haven’t yet set up ssh authentication. Instead I use HTTPS with a username and password. It can be tiresome typing in the login credentials over and over, so I typically cache the credentials with a reasonable timeout.

git config --global user.name "patrick"
git config --global credential.helper 'cache --timeout=3600'

I also make sure my .git/config contains the username so I don’t need to type that in over and over.

https://<USERNAME>@github.com/path/to/repo.git

More helpful information can be found here.


Edit page
Share this post on:

Previous Post
Mounting a SMB Share at Boot
Next Post
Reaching Quorum in Proxmox with an External QDevice