I'm looking at a git hook which looks for print statements in Python code. If a print statement is found, it prevents the git commit.
I want to override this hook and I was told that there is a command to do so. I haven't been able to find it. Any thoughts?
This question is related to
git
githooks
git-commit
For those very beginners
who has spend few hours for this commit (with comment
and no verify
) with no further issue
git commit -m "Some comments" --no-verify
From man githooks
:
pre-commit
This hook is invoked by git commit, and can be bypassed with --no-verify option. It takes no parameter, and is invoked before obtaining the proposed commit log message and making a commit. Exiting with non-zero status from this script causes the git commit to abort.
Source: Stackoverflow.com