Skip Git commit hooks
问题 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? 回答1: Maybe (from git commit man page): git commit --no-verify -n --no-verify This option bypasses the pre-commit and commit-msg hooks. See also githooks(5). As commented by Blaise, -n can have a different role for certain commands. For