Most Git Git hooks can be bypassed with the
--no-verify option. For
example, you can skip the pre-commit hook with:
$ git commit --no-verify -m "Quick and dirty"
If you only want to skip certain pre-commit scripts, you can use the environment
SKIP with a comma-separated list of hook IDs, for example:
$ SKIP=check-added-large-file,no-commit-to-branch git commit -m "Hotfix"