Created
May 15, 2014 10:06
-
-
Save yoshimov/9837938e4f46edfb9ed4 to your computer and use it in GitHub Desktop.
crontab for synchronizing git repositories every 2 hours.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 0 */2 * * * cd /home/hoge/git && (git pull && git push) 2>&1 | grep -v 'up-to-date' | mail -E'set nonullbody' -s "title" somebody@gmail.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment