git status
for your $HOME
.
(Derived from The Alot is better than you at everything)
If you work on lots of git repositories across multiple machines, it is often possible to lose track of the odd stash or untracked file. That is where the alot comes in. He will rummage through and help you find those pesky untracked files and lost stashes.
You will need GitPython. If you have pip available, this is probably the quickest way to get started:
pip install --user GitPython
Then put git-alot.py
into a directory in your $PATH
as git-alot
.
Then type git alot
.
If you have a cold filesystem cache you can expect this to take a few minutes the first time you do it.
It will first find all directories called .git
in your $HOME
. Then it uses
GitPython to find out what
uncommitted and untracked changes there are for each repository, along with
any stashes. It then lists all repositories with outstanding things.
It would be nice also to track synchronization of repositories across multiple machines, but I'm not sure how to implement this in a clean way at the moment, other than just running it on each one and making sure for yourself that you have pushed and fetched.
Put this in your crontab
, get a weekly e-mail telling you about repositories
you left in a mess.
If you have any problems getting started, please make an issue. Pull requests are also welcome.