Created
January 2, 2013 11:26
-
-
Save summic/4433947 to your computer and use it in GitHub Desktop.
post-receive
This file contains 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
#!/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