Skip to content

Instantly share code, notes, and snippets.

@chewett
Created November 25, 2014 17:33
Show Gist options
  • Save chewett/bc5030946ff6cf45ea88 to your computer and use it in GitHub Desktop.
Save chewett/bc5030946ff6cf45ea88 to your computer and use it in GitHub Desktop.
Run git gc on all repos under current directory WARNING MAKES A FILE
find `pwd` -name .git | xargs -i echo "cd {}/../; git gc" > run_me_if_you_dare.sh; sh < run_me_if_you_dare.sh; rm run_me_if_you_dare.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment