Skip to content

Instantly share code, notes, and snippets.

@charlesdrews
Created May 21, 2019 13:33
Show Gist options
  • Save charlesdrews/91c15ddad3c6148d5cc7df139658a940 to your computer and use it in GitHub Desktop.
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/ "."
#!/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