Ask Question

GIT: How to bypass pre-commit hook?

Sometimes I just want to bypass the pre-commit hook in order to save my changes even though some tests are failing…

Git

1541 views

Author´s AnkiCodes image

AnkiCodes

❤️
1
Last edited on

1 Answer available

Best answer

With following command you can bypass the pre-commit hook and commit your changes immediately.

git commit -m 'your commit message' --no-verify
👍
2