git-commit-without-pre-commit-hook

A quick tips if you want to skip the pre-commit validations and quickly want to get a git-commit out there.

$  git commit . -m 'quick fix'
[INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
Flake8...................................................................Failed
- hook id: flake8
- exit code: 1

core/utils/estimate.py:7:9: E126 continuation line over-indented for hanging indent
core/utils/estimate.py:7:9: E265 block comment should start with '# '

To get your commit through without running that pre-commit hook, use the --no-verify option.

$ git commit . -m 'quick fix' --no-verify

[master 81d0b2e0] wip

19 files changed, 1718 insertions(+), 5 deletions(-)

Let’s try now , Hope, without pre-commit hooks running!

Avatar

About Shachindra Yadav

I, Shachindra Yadav, a Cloud Certified, DevOps and technology enthusiastic person, more passionate to learn and write blogs in my free time.

View all posts by Shachindra Yadav →

Leave a Reply

Your email address will not be published.