Created
September 8, 2014 14:25
-
-
Save gjoseph/461e194a0145ae59a7b6 to your computer and use it in GitHub Desktop.
git-all
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/sh | |
CMD=$@ | |
echo WILL EXECUTE git $CMD | |
find . -name .git -exec dirname {} \; | while read dir; do | |
C=`pwd` | |
cd $dir | |
#echo "\033[1m`pwd`:\033[0m" | |
echo "\033[1m$dir:\033[0m" | |
git $CMD | |
echo "" | |
cd $C | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment