Skip to content
P

Prek

A fast Git hook manager written in Rust

by j178Free

#434in Utilities
0In stores

Description

prek is a Git hook manager written in Rust. It runs hooks before you commit, on demand, or in CI, and those hooks can format files, catch li…

Highlights

  • Single binary with no runtime needed
  • Drop-in compatible with pre-commit
  • Monorepo workspace mode
  • Toolchains for several languages
  • Built-in Rust hooks

Ratings & Reviews

No ratings yet

Be the first to rate Prek.

People also visit

S

setup-pre-commit

Set up Husky pre-commit hooks with lint-staged

AI Skills
Get
S

setup-pre-commit

在当前仓库设置 Husky pre-commit hooks,集成 lint-staged

AI Skills
Get
B

block-no-verify-hook

Configure a PreToolUse hook to prevent AI agents

AI Skills
Get
G

git-guardrails-claude-code

Set up Claude Code hooks to block dangerous git commands

AI Skills
Get
C

Captainhook

CaptainHook is a very flexible git hook manager for software developers

Productivity
Launch
G

git-guardrails-claude-code

设置 Claude Code hooks,在危险 git commands(push、reset --hard、clean、branch -D

AI Skills
Get

Prek FAQ

What is prek?

A Git hook manager written in Rust that runs hooks before commits, on demand or in CI.

Is it a replacement for pre-commit?

Yes. The site says it is fully compatible with pre-commit configurations and hooks, so it works as a drop-in replacement.

Do I need Python to use it?

No. It is a single binary with no dependencies and does not need Python or any other runtime.

Does it support monorepos?

Yes. It has built-in workspace support, including concurrent execution for independent projects at the same depth.

Can I use hooks from private repositories?

Yes. The FAQ describes credential helpers, SSH URLs and URL rewriting with tokens for CI.

Which projects use it?

The site names CPython, Apache Airflow and FastAPI as projects that use it.

What are the best Prek alternatives?

Popular alternatives to Prek include Go Git, GitGuard and Git Cliff. See all Prek alternatives

Developer Stuff

Badges