Skip to content

Instantly share code, notes, and snippets.

@ronanyeah
Last active December 21, 2016 18:01
Show Gist options
  • Save ronanyeah/5cea88a11894c63c717362912b3c8204 to your computer and use it in GitHub Desktop.
Save ronanyeah/5cea88a11894c63c717362912b3c8204 to your computer and use it in GitHub Desktop.
run git status against all folders in the current folder
#!/bin/bash
find . -maxdepth 1 -mindepth 1 -type d -exec sh -c '(echo {} && cd {} && git status -s && echo)' \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment