How can I automatically be warned if a specific file changes?
I have a php project, and when I pull from another repository and the composer.lock file gets changed, I'm supposed to run composer.phar install --dev . How can git automatically warn me / ask me if I want to run this command? I suppose some sort of hook would do the trick, but how can I get information regarding only what has changed before and after the pull in it? mvp It depends on what option you use when pulling: No option : git fetch and git merge are run You can write your own post-merge git hook : This hook is invoked by git merge, which happens when a git pull is done on a local