Skip to content

Comment on Discussion of the Benefits and Drawbacks of the Git Pre-Commit Hook

Comments

I use git hooks in professional setting to prefix every commit message with the ticket the commit belongs to (this is done by extrapolating the ticket id from the feature branch name). It works pretty well and has saved my bacon a couple of times when I needed to figure out the provenance of a particular commit. Especially useful when I had to ask why that particular change was necessary.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.