Created
July 11, 2014 06:52
-
-
Save phproberto/7fb80b11181f2759168b to your computer and use it in GitHub Desktop.
Base post-receive bash hook for web deploy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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