Skip to content

Instantly share code, notes, and snippets.

@janzikan
Created July 16, 2015 12:13
Show Gist options
  • Save janzikan/180c85998d4e3a0ee566 to your computer and use it in GitHub Desktop.
Save janzikan/180c85998d4e3a0ee566 to your computer and use it in GitHub Desktop.
Git: deployment with post receive hook
#!/bin/sh
unset GIT_DIR
cd /var/www/[PROJECT_DIR] && git pull origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment