I have a post-commit hook that does stuff in ruby. It works very well but in some cases I would like to skip the code execution when I do a git rebase
or git commit --amend
.
Does someone have an idea how I could not trigger the post-commit hook in these cases or any work around?
git commit --amend
, and I'm pretty confident it's never happened to me. I'm curious to know whether that's still an issue for you, and in what circumstances it happens? – Harpsichord