Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save brycemcd/419570 to your computer and use it in GitHub Desktop.
Save brycemcd/419570 to your computer and use it in GitHub Desktop.
#!/bin/sh
# used in BME projects for designers who don't like the command line :) Automatically adds anything new in the working index to the repo, commits the changes, and then pushes it back to the origin/design branch.
# At BME, useful for us developers getting regular updates pulled into our repos
# Common usage: drop this script into the designers home folder and then add a cron task like the following:
# @hourly /home/steveb/github >> /var/log/designcommits.log 2>&1
cd /var/www/html
export GITPATH=/usr/local/bin/git
$GITPATH add .
$GITPATH commit -am "commit at `date '+%F-%H-%M'`"
$GITPATH push origin design
#(c) 2010, Bryce McDonnell Enterprises, LLC www.brycemcdonnell.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment