I'm using Git pre-commit/pre-push hook to build my software before every commit. This is, of course, useful when I change source code files. The hook also runs if I change non-source code files (e.g. ReadMe.md). For those commits, I don't want to run the hook.
Is there a way to deactivate the hook via the command line?
There is a flag -n which stands for --no-verify, is very handy to bypass hooks on git commits
git commit -n
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With