Skip to content

Instantly share code, notes, and snippets.

@ehayon
Created August 21, 2013 15:04
Show Gist options
  • Save ehayon/6295644 to your computer and use it in GitHub Desktop.
Save ehayon/6295644 to your computer and use it in GitHub Desktop.
Show status of all nested git repos in a directory
#!/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