Created
February 6, 2020 01:39
-
-
Save SirJson/c9ab35356c24ab86b6f46ab9518110fc 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 | |
CYAN=$(tput setaf 6) | |
BOLD=$(tput bold) | |
RESET=$(tput sgr0) | |
echo "> Searching for git directories..." | |
find . -name ".git" -type d | while read dir; do | |
echo "-----" | |
echo -e Git status @ ${CYAN}${BOLD}${dir/.git/}${RESET} | |
sh -c "cd ${dir/.git/} && git status -s -uall -b" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment