Last active
August 29, 2015 14:06
-
-
Save raphaelyancey/0df67eb38cf090613501 to your computer and use it in GitHub Desktop.
Git post-receive deployment script
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 | |
# Name of the destination directory | |
NAME=deploy-test | |
echo "[+] Deploying..." | |
git --work-tree=/home/$NAME --git-dir=/home/git/repositories/$NAME.git checkout -f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment