Created
May 31, 2010 05:19
-
-
Save brycemcd/419570 to your computer and use it in GitHub Desktop.
This file contains 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
#!/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