git commit -n All In One
$ git commit --help
-n, --[no-]verify
By default, the pre-commit and commit-msg hooks are run. When any
![image](/i/l/?n=23&i=blog/740516/202303/740516-20230313233916562-1121527224.png)
ify or -n is given, these are bypassed. See also
githooks(5).
# 绕过 git commit hooks 校验
$ git commit -n
API
-n
=== --no-verify
https://git-scm.com/docs/git-commit
https://www.atlassian.com/git/tutorials/saving-changes/git-commit