Last active
August 29, 2015 14:03
-
-
Save RyanParsley/6761fe924427742932e6 to your computer and use it in GitHub Desktop.
hooks/post-receive on server to deploy develop branch via git commits.
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
| cd [path/to/site] || exit | |
| unset GIT_DIR | |
| git clean -f | |
| git pull origin develop | |
| chmod -Rf g+w . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment