Skip to content

Instantly share code, notes, and snippets.

@andrewwheal
Last active August 29, 2015 13:56
Show Gist options
  • Save andrewwheal/9344159 to your computer and use it in GitHub Desktop.
Save andrewwheal/9344159 to your computer and use it in GitHub Desktop.
Git post-receive hook
if [ $(basename $(pwd)) == ".git" ]; then
cd ..
export GIT_DIR=.git
fi
git checkout $(git rev-parse master)
git reset --hard HEAD --
git submodule update --init --recursive
ant
composer install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment