Skip to content

Instantly share code, notes, and snippets.

@Merovex
Last active December 31, 2015 19:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Merovex/a31c9378a96c71338b33 to your computer and use it in GitHub Desktop.
Save Merovex/a31c9378a96c71338b33 to your computer and use it in GitHub Desktop.
#!/bin/sh
# 0 */2 * * * /path/to/gitAutoPush.sh >> /path/to/auto-push.log 2>&1
DATE=`date -u`
echo "==== $DATE ===="
cd /path/to/project.scriv/
git add . -A
git commit -am "Automated Snapshot - $DATE";
git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment