Show HN: Bash script to check if any Git repo has uncommitted changes
gist.github.com
gist.github.com
Before you reinvent this wheel, there is already a tool doing exactly that: https://github.com/brandon-rhodes/uncommitted
(Disclaimer: I wrote a large part of it)