Skip to content

Instantly share code, notes, and snippets.

@ignlg
Created April 20, 2020 12:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ignlg/8087dfd36f2705d594dfae839a811abf to your computer and use it in GitHub Desktop.
Save ignlg/8087dfd36f2705d594dfae839a811abf to your computer and use it in GitHub Desktop.
Check every git status of every repository
#! /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