Skip to content

Instantly share code, notes, and snippets.

@Pablo1
Created April 19, 2014 00:37
Show Gist options
  • Save Pablo1/11069734 to your computer and use it in GitHub Desktop.
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.
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