From c624b9dec62502e3e3f0248eb5f8e4f89ae4c76c Mon Sep 17 00:00:00 2001 From: Ofer Sadan Date: Wed, 29 Apr 2026 04:26:25 +0300 Subject: [PATCH] prek: add page (#22222) Co-authored-by: Harshavardhan Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com> Co-authored-by: Ivan Baluta --- pages/common/prek.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/common/prek.md diff --git a/pages/common/prek.md b/pages/common/prek.md new file mode 100644 index 0000000000..08775cfbda --- /dev/null +++ b/pages/common/prek.md @@ -0,0 +1,24 @@ +# prek + +> Create Git hooks that run before commits. +> More information: . + +- 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`