Skip to content

Instantly share code, notes, and snippets.

@suzuki suzuki/sample.sh

Created Apr 14, 2016
Embed
What would you like to do?
#!/bin/sh
DIRS=`find ./ -type d -name .git -depth 3`
for D in $DIRS
do
pushd . > /dev/null
cd $D
echo `dirname $D`
git rev-parse --abbrev-ref HEAD
popd > /dev/null
done
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.