Skip to content

Instantly share code, notes, and snippets.

@pjdietz
Created March 12, 2015 18:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pjdietz/eb8ee590411af539ca68 to your computer and use it in GitHub Desktop.
Save pjdietz/eb8ee590411af539ca68 to your computer and use it in GitHub Desktop.
Run composer install after checkout
composer install || php composer.phar install || php ~/composer.phar install || echo "Please run composer install"
@pjdietz
Copy link
Author

pjdietz commented Mar 12, 2015

To install, run this from the root of your project:

echo 'composer install || php composer.phar install || php ~/composer.phar install || echo "Please run composer install"' > .git/hooks/post-checkout
chmod +x .git/hooks/post-checkout

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment