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:
Ofer Sadan
2026-04-29 04:26:25 +03:00
committed by GitHub
parent c34a212c91
commit c624b9dec6
+24
View File
@@ -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`