Created
March 31, 2009 17:49
-
-
Save c9s/88300 to your computer and use it in GitHub Desktop.
This file contains hidden or 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/bash | |
ls -1F | grep '/$' | while read dir ; do | |
echo "--------Processing $dir" | |
cd $dir | |
if [ -d '.git' ] ; then | |
git gc | |
else | |
echo "These is no .git directory" | |
fi | |
cd .. | |
echo "--------Done" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment