Created
September 1, 2012 21:54
-
-
Save ashsmith/3588671 to your computer and use it in GitHub Desktop.
Git push to server, remote repo hook to automatically update a website's filesystem
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
#!/bin/sh | |
WEBDIR=/var/www/mysite.com | |
GIT_WORK_TREE=$WEBDIR git checkout -f | |
cd $WEBDIR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment