Skip to content

Instantly share code, notes, and snippets.

@adunkman
Last active December 17, 2015 15:19
Show Gist options
  • Save adunkman/5631298 to your computer and use it in GitHub Desktop.
Save adunkman/5631298 to your computer and use it in GitHub Desktop.
Execute git status on each directory that is a git repository in the current directory.
ls -dx1 */.git/ | sed 's/\(.*\)\/\.git\//echo \1: \&\& cd \1 \&\& git status --porcelain \&\& cd ..; /' | bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment