Skip to content

Instantly share code, notes, and snippets.

@gjoseph
Created September 8, 2014 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gjoseph/461e194a0145ae59a7b6 to your computer and use it in GitHub Desktop.
Save gjoseph/461e194a0145ae59a7b6 to your computer and use it in GitHub Desktop.
git-all
#!/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