From 65b5648f4b7b5162d3940050c656abca36907064 Mon Sep 17 00:00:00 2001 From: Axel Navarro Date: Thu, 14 Oct 2021 07:13:41 -0300 Subject: [PATCH] husky: add page (#6999) --- pages/common/husky.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pages/common/husky.md diff --git a/pages/common/husky.md b/pages/common/husky.md new file mode 100644 index 0000000000..c3d93d105c --- /dev/null +++ b/pages/common/husky.md @@ -0,0 +1,28 @@ +# husky + +> Native Git hooks made easy. +> More information: . + +- Install Husky in the current directory: + +`husky install` + +- Install Husky into a specific directory: + +`husky install {{path/to/directory}}` + +- Set a specific command as a `pre-push` hook for Git: + +`husky set {{.husky/pre-push}} "{{command}} {{command_arguments}}"` + +- Add a specific command to the current `pre-commit` hook: + +`husky add {{.husky/pre-commit}} "{{command}} {{command_arguments}}"` + +- Uninstall Husky hooks from the current directory: + +`husky uninstall` + +- Display help: + +`husky`