Created
October 16, 2020 14:43
-
-
Save Trass3r/ec26b8ceb79343e0e06337256c497274 to your computer and use it in GitHub Desktop.
run git gc on every git repo in the current directory
This file contains 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
find . -name .git -type d -prune -execdir pwd \; -execdir git gc --aggressive --prune=now \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment