Skip to content

Instantly share code, notes, and snippets.

@rdbox
Last active April 27, 2016 11:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rdbox/23dcc576737f82c84ea4b22f3217ff12 to your computer and use it in GitHub Desktop.
Save rdbox/23dcc576737f82c84ea4b22f3217ff12 to your computer and use it in GitHub Desktop.
#Create file with name 'post-receive' in directory hooks
#delete full comment
#!/bin/sh
git --work-tree=/var/www/domain.com --git-dir=/var/repo/site.git checkout -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment