Jeremy Belolo Jeremy Belolo - 6 months ago 48
Git Question

git post-merge hook doesn't seems to work

I have a post-merge hook defined. I just want to test it, so I simply wrote

#! /bin/sh
echo "just merged"

But I don't have any unusual output when merging.

Thanks ahead.


Ensure that the hook is executable. In the repository root, execute:

chmod +x .git/hooks/post-merge