Skip to content

Instantly share code, notes, and snippets.

@snide
Created March 27, 2012 17:16
Show Gist options
  • Save snide/2218100 to your computer and use it in GitHub Desktop.
Save snide/2218100 to your computer and use it in GitHub Desktop.
function gg() {
cd ~/cbsi
find . \
-mindepth 1 -maxdepth 2 \
-type d -name .git \
| while read git_dir; do
dir=`dirname $git_dir`
echo $dir:
cd $dir
git $*
cd - >/dev/null
echo ""
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment