Skip to content

Instantly share code, notes, and snippets.

@hunzo
Created December 14, 2021 01:54
Show Gist options
  • Select an option

  • Save hunzo/3f5ecb60bbef8143869d34ec13b9f849 to your computer and use it in GitHub Desktop.

Select an option

Save hunzo/3f5ecb60bbef8143869d34ec13b9f849 to your computer and use it in GitHub Desktop.
Git Cache example
#!/bin/bash
git config --global user.name "your_account"
git config --global user.email "your_account@email.local"
git config --global credential.helper cache
git config --global credential.helper 'cache --timeout=604800'
git config -l
# 1 day 86400 second
# 7 day 604800 second
# 30 day 2592000 second
# Remove Credentials
# git config --global --unset credetial.helper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment