https://github.com/vietdien2005/git-alert
This bash script watch new commit of your repository.
https://github.com/vietdien2005/git-alert
bash crontab git notification
Last synced: 2 months ago
JSON representation
This bash script watch new commit of your repository.
- Host: GitHub
- URL: https://github.com/vietdien2005/git-alert
- Owner: vietdien2005
- License: mit
- Created: 2017-07-04T14:32:35.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-07T09:56:08.000Z (almost 9 years ago)
- Last Synced: 2025-08-05T11:40:17.906Z (11 months ago)
- Topics: bash, crontab, git, notification
- Language: Shell
- Size: 2.93 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
git-alert
========
This bash script watch new commit of your repository
Notice: Only on Linux, sorry Unix & Windows guys
Installation:
------------
Run command:
git clone https://github.com/vietdien2005/git-alert.git
cd git-alert && chmod +x git-alert && sudo mv git-alert /usr/bin
And create your cron:
crontab -l | { cat; echo "* * * * * git-alert /home/repo origin/master >/dev/null 2>&1"; } | crontab -
Or run command ` crontab -e ` and input this line:
* * * * * git-alert /home/repo origin/master >/dev/null 2>&1
Usage:
----------
git-alert /
Example:
----------
git-alert /home/your_repo origin/master