Ktlint: Uninstall git-pre-commit-hook?

Created on 16 Jul 2018  路  3Comments  路  Source: pinterest/ktlint

I unchecked the git hooks, but next time it's still checked.
Besides, every time it tells me there're some errors cannot be auto-corrected, so I'd like to uninstall it.

Most helpful comment

rm .git/hooks/pre-commit

All 3 comments

rm .git/hooks/pre-commit

Would be good to have pre-commit --uninstall-hooks which actually does what @shyiko proposed.
Otherwise might be not obvious.

@shyiko proposal is too destructive as there could be another code in pre-commit hook. Imho deleting it by hand should be fine solution for now.

Was this page helpful?
0 / 5 - 0 ratings