--not-verify
works, but in my case, I didn't want to put the parameter all the time on the terminal. So I opted for something a little more aggressive.
If you want to disable git hooks
globally, you could try running this:
git config --global core.hooksPath /dev/null
But, if you want to leave it as it was before, just run the following command in your terminal:
git config --global --unset core.hooksPath
If you do not want it to be global just remove the argument: --global
I hope it will be useful to someone, I tested it with git 2.16.3
commit
): stackoverflow.com/questions/58337861/… – Gabriel Devillers