I found this script years ago, and it is one I use all the time. Every once in a while when I'm doing some cleaning/organizing on my computer, I'll run it in my main git repo folder and check for any "loose ends". It's a great way to make sure you haven't forgotten to push/commit something.