Skip to content

Instantly share code, notes, and snippets.

@mybuddymichael
Created May 6, 2012 03:00
Show Gist options
  • Save mybuddymichael/2607214 to your computer and use it in GitHub Desktop.
Save mybuddymichael/2607214 to your computer and use it in GitHub Desktop.
My web server post-receive hook
#!/bin/sh
GIT_REPO="/home/private/mybuddymichael.git"
PUBLIC="/home/public/dev/"
cd $PUBLIC || exit
unset GIT_DIR
echo "*** Pulling changes into prime."
git pull hub master
exec git-update-server-info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment