Skip to content

Instantly share code, notes, and snippets.

@TaylorChen
Forked from summic/post-receive.sh
Last active August 29, 2015 14:07
Show Gist options
  • Save TaylorChen/20be9f99d0c969beed83 to your computer and use it in GitHub Desktop.
Save TaylorChen/20be9f99d0c969beed83 to your computer and use it in GitHub Desktop.
#!/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