From 27b5480f6232e2b4b19edd2e1ff2508ac0bf1a90 Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Fri, 26 Apr 2024 23:52:56 +0200 Subject: [PATCH] chore(kb/lefthook): add commands for hooks reset --- knowledge base/lefthook.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/knowledge base/lefthook.md b/knowledge base/lefthook.md index f9ec1ba..582d1ba 100644 --- a/knowledge base/lefthook.md +++ b/knowledge base/lefthook.md @@ -44,6 +44,9 @@ lefthook run 'pre-commit' -n --commands 'hadolint' --files 'lefthook.yml' # Remove configured hooks from the current git repository. lefthook uninstall lefthook uninstall -cv + +# Reset lefthook-managed git hooks and start from the beginning. +lefthook uninstall && lefthook install ``` Uses the [glob library] for glob patterns.