Created
August 21, 2013 15:04
-
-
Save ehayon/6295644 to your computer and use it in GitHub Desktop.
Show status of all nested git repos in a directory
This file contains hidden or 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 | |
HIGHLIGHT="\e[01;34m" | |
NORMAL='\e[00m' | |
find . -name .git -type d -prune | cut -d. -f2 | while read file | |
do | |
STATUS=$(cd .$file; git status); | |
echo -e '\n'${HIGHLIGHT}$file ${NORMAL}'\n\t'$STATUS | |
done | |
echo -e |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment