Created
December 14, 2021 01:54
-
-
Save hunzo/3f5ecb60bbef8143869d34ec13b9f849 to your computer and use it in GitHub Desktop.
Git Cache example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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