Skip to content

Instantly share code, notes, and snippets.

@tknv
Created September 26, 2011 20:00
Show Gist options
  • Save tknv/1243243 to your computer and use it in GitHub Desktop.
Save tknv/1243243 to your computer and use it in GitHub Desktop.
collect git object garbage all
find . -type d -name .git | while read dir; do pushd "$dir"; git gc --prune; popd; done
find . -type d -name .git | while read dir; do pushd "$dir"; git gc --prune; popd; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment