How to remove git hooks How to remove git hooks git git

How to remove git hooks


I figured out what was causing that:
I had created my pre-commit hook in git core directory, but the git had created a pre-commit hook in project's .git/hooks/ directory. I just removed it.


Based on the documentation, git hooks should reside in $GIT_DIR/hooks/ - verify this dir does not contain the pre-commit hook file

If the problem persists, you could flag your git commit with --no-verify (that should bypass the pre-commit hook)

Information can be found at:

https://git-scm.com/docs/githooks