When I go to a project’s directory to work on it after a while I almost always do a git status. This makes it obsolete: “Henrik has a great article explaining why and how to display Git’s dirty state status (along with the branch, of course) in your bash prompt.”
(From Dirty Git State in Your Prompt - GitHub.)