Skip to content

Instantly share code, notes, and snippets.

@suzuki suzuki/

Created Apr 14, 2016
What would you like to do?
DIRS=`find ./ -type d -name .git -depth 3`
for D in $DIRS
pushd . > /dev/null
cd $D
echo `dirname $D`
git rev-parse --abbrev-ref HEAD
popd > /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.