Skip to content

Instantly share code, notes, and snippets.

@yusukezzz
Last active December 30, 2015 10:49
Show Gist options
  • Save yusukezzz/7818180 to your computer and use it in GitHub Desktop.
Save yusukezzz/7818180 to your computer and use it in GitHub Desktop.
git hook pre-commit
#!/bin/sh
REPO_ROOT="$GIT_DIR/.."
cd $REPO_ROOT
composer dump
phpunit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment