add new chinese translations
This commit is contained in:
28
pages.zh/common/husky.md
Normal file
28
pages.zh/common/husky.md
Normal file
@@ -0,0 +1,28 @@
|
||||
# husky
|
||||
|
||||
> 简化本地 Git 钩子。
|
||||
> 更多信息:<https://typicode.github.io/husky>。
|
||||
|
||||
- 在当前目录安装 Husky:
|
||||
|
||||
`husky install`
|
||||
|
||||
- 将 Husky 安装到特定目录:
|
||||
|
||||
`husky install {{path/to/directory}}`
|
||||
|
||||
- 设置特定命令作为 Git 的 `pre-push` 钩子:
|
||||
|
||||
`husky set {{.husky/pre-push}} "{{command}} {{command_arguments}}"`
|
||||
|
||||
- 将特定命令添加到当前的 `pre-commit` 钩子:
|
||||
|
||||
`husky add {{.husky/pre-commit}} "{{command}} {{command_arguments}}"`
|
||||
|
||||
- 从当前目录卸载 Husky 钩子:
|
||||
|
||||
`husky uninstall`
|
||||
|
||||
- 显示帮助:
|
||||
|
||||
`husky`
|
Reference in New Issue
Block a user