Created
March 27, 2014 14:12
-
-
Save fredsmith/9808450 to your computer and use it in GitHub Desktop.
This file contains 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/bash | |
function print { awk "{print \$$1}"; } | |
for dir in *; do | |
if [[ -d $dir/.git ]]; then | |
pushd $dir > /dev/null; | |
echo -n "$dir : " | |
#git rev-parse --verify HEAD | |
git ls-remote origin -h refs/heads/master 2> /dev/null | print 1 | |
git status --short -b; | |
popd > /dev/null; | |
fi | |
done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment