Jeremy Belolo
Jeremy Belolo

Reputation: 4539

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.

Upvotes: 0

Views: 537

Answers (1)

1615903
1615903

Reputation: 34800

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

chmod +x .git/hooks/post-merge

Upvotes: 4

Related Questions