Created
January 27, 2016 07:50
-
-
Save fvdm/599f5167d7a0fcbb3178 to your computer and use it in GitHub Desktop.
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
#!/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