Skip to content

Instantly share code, notes, and snippets.

@RyanParsley
Last active August 29, 2015 14:03
Show Gist options
  • Select an option

  • Save RyanParsley/6761fe924427742932e6 to your computer and use it in GitHub Desktop.

Select an option

Save RyanParsley/6761fe924427742932e6 to your computer and use it in GitHub Desktop.
hooks/post-receive on server to deploy develop branch via git commits.
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