Git deploy hook
#!/bin/sh
git --work-tree=/var/www/domain.com --git-dir=/var/repo/site.git checkout -f
Then...
chmod +x post-receive
Written by Leo Cavalcante
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Hook
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#