This command line tool will find any local git repositories that have a dirty working folder.
npm install -g @davidahouse/git-lost
git-lost --workingFolder /someFolder
You can also create a ~/.git-lostrc file and set a global working folder so you don't have to specify it on the command line. Format is:
The default action is
dirty which finds any repositories that have local changes or are ahead or behind the remote. The other commands are
branch shows any repositories that aren't on the default branch, and
list shows all repositories found.
You can specify the action on the command line:
git-lost --action branch