Last Updated: February 25, 2016
·
354
· 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