Created
July 12, 2015 06:27
-
-
Save rkjha/8ca4ea5c00db52e92942 to your computer and use it in GitHub Desktop.
Git post-receive hook for deployment
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 | |
echo 'Deploying to the server............' | |
GIT_WORK_TREE=/home/example_user/example.com git checkout -f | |
echo '..............................Done.' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment