Jeremy Belolo Jeremy Belolo - 1 year ago 107
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 Source

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

chmod +x .git/hooks/post-merge
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download