Skip to content

Instantly share code, notes, and snippets.

@summic
Created January 2, 2013 11:26
Show Gist options
  • Save summic/4433947 to your computer and use it in GitHub Desktop.
Save summic/4433947 to your computer and use it in GitHub Desktop.
post-receive
#!/bin/sh
#
cd "/var/www/domain.com/" || exit
unset GIT_DIR
echo "git status info:"
git status
echo "*************************************";
exec sudo -u www-data git pull origin production
exec git-update-server-info
echo "-- Done! --"
echo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment