pre-commit hooks are fundamentally broken

This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).

Pre-commit hooks are fundamentally flawed because they run on the working tree instead of the index, fail during rebases and interactive operations, and break workflows where commits are used for local state management. They can't handle commits without relevant files, run on branches being rebased, and create friction when

•7m read time•From jyn.dev
Post cover image
Table of contents
Now, we really have a problem.Tips for writing a pre-push hook
1 Comment

Sort: