A useful scripts to check for modifications in all child directories:

Runs git status on all child directories to see if there is any uncommitted modification in any child directory.

find . -type d -depth 1 -name 'th*' -exec sh -c 'echo "\n \x1B[0;33m CHECKING STATUS IN {} \x1B[0m \n"' \; -exec git -C {} branch \; -exec git -C {} status \;

-name ‘th*’ is optional. You can have any other expression to filter directories or just remove it to include all.

It is very useful for developing Polymer components (especially alongside with bower) where you need to make sure you have no modifications before running bower update since it overrides a directory which is a dependency of the one you run bower update in.

← Back