mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-07 06:05:59 +02:00
husky: add page (#6999)
This commit is contained in:
parent
b87928f6e5
commit
65b5648f4b
1 changed files with 28 additions and 0 deletions
28
pages/common/husky.md
Normal file
28
pages/common/husky.md
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
# husky
|
||||||
|
|
||||||
|
> Native Git hooks made easy.
|
||||||
|
> More information: <https://typicode.github.io/husky>.
|
||||||
|
|
||||||
|
- 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`
|
Loading…
Add table
Reference in a new issue