Do you forget to git commit or git push? git-remind is a command line tool for such a forgetful person (like me). It monitors the state of the Git repositories and reports which repositories need to commit or push.
git-remind checks across the all git repositories in your computer, and it displays the status whether there are uncommitted files and there are ahead commits which should be pushed to remote.
git-remind notifies you git-commit/git-push status using desktop notification. This feature is tested macOS, but it will work in Windows and Linux.
brew install suin/suin/git-remind
Download build binary from the releases.
remind.paths to your
.gitconfig, using your own absolute path to the repository directories.
[remind] paths = /Users/you/projects/foo,/Users/you/projects/bar
If you have some git repositories (e.g.
~/projects/bar) in the same directory (e.g. in
~/projects) , you may specify the path using wildcard (e.g.
[remind] paths = /Users/you/projects/*
Check the configuration using the following command:
git-remind paths # Shows path patterns configuration git-remind repos # Shows git repositories to be reminded
Display git-commit/git-push status
$ git-remind status Need to commit: /Users/suin/projects/myapp1 Need to commit and push: /Users/suin/projects/myapp2
Short status like
git status -s
$ git-remind status -s C /Users/suin/projects/myapp1 CP /Users/suin/projects/myapp2
Show all status including up-to-date repositories
$ git-remind status -a Need to commit: /Users/suin/projects/myapp1 Need to commit and push: /Users/suin/projects/myapp2 Up-to-date: /Users/suin/projects/myapp3
Scheduled reminder (cron)
To get scheduled reminder, set up crontab. Following example send notifications every 20 minutes:
PATH=/usr/local/bin:/usr/bin:/bin */20 * * * * git-remind status-notification > /dev/null 2>&1
Jumping to the repositories
By combining git-remind and fzf, you will be able to jump the repositories that needs to commit or push:
cd $(git remind status -n | fzf)
It would be useful that you set command alias in your .bashrc/.zshrc:
alias grj='cd $(git remind status -n | fzf)'