mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-12 15:59:05 +00:00
Update cheatsheets
This commit is contained in:
33
husky
Normal file
33
husky
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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`
|
||||
Reference in New Issue
Block a user