Skip to content

Instantly share code, notes, and snippets.

@phproberto
Created July 11, 2014 06:52
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 phproberto/7fb80b11181f2759168b to your computer and use it in GitHub Desktop.
Save phproberto/7fb80b11181f2759168b to your computer and use it in GitHub Desktop.
Base post-receive bash hook for web deploy
#!/bin/bash
cd /var/www/mywebfolder.com
unset GIT_DIR
git fetch origin
git reset --hard origin/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment