Created
May 21, 2019 13:33
-
-
Save charlesdrews/91c15ddad3c6148d5cc7df139658a940 to your computer and use it in GitHub Desktop.
Quick bash script to run `git status` on all the repo subdirectories of the current directory. Ignores subdirectories starting w/ "."
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 | |
find ./[^\.]* -maxdepth 0 -type d | while read dir; do | |
printf "=====================================\n$dir\n" | |
git --git-dir=$dir/.git --work-tree=$dir status | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment