Skip to content

Instantly share code, notes, and snippets.

@fvdm fvdm/gitgc.sh
Created Jan 27, 2016

Embed
What would you like to do?
#!/bin/sh
export arg=$@
find . -name '.git' -type d -exec bash -c 'path=${1%/.git}; echo $path; cd "$path" && git gc $arg' 0 {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.