Created
April 20, 2020 12:58
-
-
Save ignlg/8087dfd36f2705d594dfae839a811abf to your computer and use it in GitHub Desktop.
Check every git status of every repository
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 | |
BLACK=`tput setaf 0` | |
RED=`tput setaf 1` | |
GREEN=`tput setaf 2` | |
YELLOW=`tput setaf 3` | |
BLUE=`tput setaf 4` | |
MAGENTA=`tput setaf 5` | |
CYAN=`tput setaf 6` | |
WHITE=`tput setaf 7` | |
BOLD=`tput bold` | |
RESET=`tput sgr0` | |
find . -name ".git" -type d | while read dir | |
do | |
echo -e ${YELLOW}${BOLD}${dir/.git/}${RESET} | |
sh -c "cd ${dir/.git/} && git status" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment