Skip to content

Instantly share code, notes, and snippets.

@rodrigo-brito
Created November 19, 2017 20:13
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 rodrigo-brito/23776b3a23d4c6a25dfea6699000b019 to your computer and use it in GitHub Desktop.
Save rodrigo-brito/23776b3a23d4c6a25dfea6699000b019 to your computer and use it in GitHub Desktop.
#!/bin/sh
ROOT_DIR=/var/www/project
GIT_WORK_TREE=$ROOT_DIR git checkout -f
cd $ROOT_DIR
./post-receive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment