Skip to content

Instantly share code, notes, and snippets.

@johnloy
Forked from sindresorhus/post-merge
Created July 25, 2022 22:14
Show Gist options
  • Save johnloy/e20e495f41e47af157944eeb6298a812 to your computer and use it in GitHub Desktop.
Save johnloy/e20e495f41e47af157944eeb6298a812 to your computer and use it in GitHub Desktop.
Git hook to install npm dependencies after a `git pull`. Run `chmod +x post-merge` and put it in `.git/hooks/`. Though could really do whatever.
#!/bin/sh
npm install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment