Skip to content

Instantly share code, notes, and snippets.

@SirJson
Created February 6, 2020 01:39
Show Gist options
  • Save SirJson/c9ab35356c24ab86b6f46ab9518110fc to your computer and use it in GitHub Desktop.
Save SirJson/c9ab35356c24ab86b6f46ab9518110fc to your computer and use it in GitHub Desktop.
#!/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