Skip to content

Instantly share code, notes, and snippets.

@Trass3r
Created October 16, 2020 14:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Trass3r/ec26b8ceb79343e0e06337256c497274 to your computer and use it in GitHub Desktop.
Save Trass3r/ec26b8ceb79343e0e06337256c497274 to your computer and use it in GitHub Desktop.
run git gc on every git repo in the current directory
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