News for hackers. Stuff that matters.
Re:Show HN: Bash script to check if any Git repo has uncommi... by lourot on Tuesday September 04, 2018 @02:38AM (#17907057)
Hi :) I guess your script will grow over time because soon you'll want to detect also unpushed and stashed changes.

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)