Created
April 19, 2014 00:37
-
-
Save Pablo1/11069734 to your computer and use it in GitHub Desktop.
post-receive hook to check out latest tree from a bare repository into a working directory for a web server other process. chmod + x hooks/post-receive to make executable.
This file contains hidden or 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
GIT_WORK_TREE=/var/www/www.example.org git checkout -f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment