Skip to content

Instantly share code, notes, and snippets.

@schleumer
Created February 13, 2014 12:34
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 schleumer/8974317 to your computer and use it in GitHub Desktop.
Save schleumer/8974317 to your computer and use it in GitHub Desktop.
#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