Last Updated: February 25, 2016
·
334
· leocavalcante

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