mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 20:11:19 +08:00
prek: add page (#22222)
Co-authored-by: Harshavardhan <harshath3018@gmail.com> Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com> Co-authored-by: Ivan Baluta <ivanbaluta.dev@gmail.com>
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
# prek
|
||||
|
||||
> Create Git hooks that run before commits.
|
||||
> More information: <https://prek.j178.dev/reference/cli/>.
|
||||
|
||||
- Install prek into your Git hooks:
|
||||
|
||||
`prek install`
|
||||
|
||||
- Run prek hooks on all staged files:
|
||||
|
||||
`prek run`
|
||||
|
||||
- Run prek hooks on all files, staged or unstaged:
|
||||
|
||||
`prek run {{[-a|--all-files]}}`
|
||||
|
||||
- Clean prek cache:
|
||||
|
||||
`prek cache clean`
|
||||
|
||||
- Update prek configuration file to the latest repos' versions:
|
||||
|
||||
`prek auto-update`
|
||||
Reference in New Issue
Block a user