Get notifications of new commits on a remote branch
- Tells you how many commits behind a remote branch your local version is
- Notification comes through macOS or Ubuntu within 10 seconds of a new commit on the remote branch
- Shows a shortened version of the commit logs for the new commits
- Runs in an infinite sleepy loop
Put on your $PATH, e.g.
cp git-informed.sh /usr/local/bin/git-informed
Use in any repo as normal git command
git informed
# or in the background
git informed &
# with specific branch
git informed development &
ln -s git-informed.sh ~/repo/of/choice/git-informed.sh
cd ~/repo/of/choice
./git-informed.sh
position | name | description |
---|---|---|
1 | branch |
specify the branch to compare remote and local versions (defaults to HEAD) |
short | long | description |
---|---|---|
-v |
--verbose |
print the result of each remote check |
-a |
--alert |
(macOS only) show modal alerts in addition to system notifications |
-N |
--no-notification |
don't show system notifications (useful when -v or -a is specified) |
Works on
- macOS (with the
osascript
dependency) - Ubuntu (with
notify-send
dependency)