Useful Git Hooks?

I was just wondering if anybody has examples of some useful/funny git hooks they’ve seen/used? I’ve seen the basic stuff (like linting pre-commit) but I figure there’s got to be something more exotic than that.

There’s a sea of then out there, ones that post to IRC, ones that check ACLs, or ones that check people’s calendars to let you know your chosen reviewers are on vacation or out of office.

The more people you have working on something - the more integrations you’ll end up with and the weirder the hooks. Think Kafka queues on post-commits :confused:

Well, first of all “useful” depends very much on the project, doesn’t it?

But, one thing I can think of is a video L1 once did:

1 Like