Created
February 13, 2014 12:34
-
-
Save schleumer/8974317 to your computer and use it in GitHub Desktop.
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
#Add these commands to the file | |
echo "\n" | |
echo "********************" | |
echo "Post receive hook: Updating website" | |
echo "********************" | |
echo "\n" | |
#Change to working git repository to pull changes from bare repository | |
cd /home/topfriends/www || exit | |
unset GIT_DIR | |
git pull origin master | |
#End of commands for post-receive hook | |
echo "\n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment