Jeremy Belolo Jeremy Belolo - 1 month ago 9
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.

Answer

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

chmod +x .git/hooks/post-merge
Comments