Hacker News new | ask | show | jobs
by davidjfelix 897 days ago
I can't stand the ticket number in the message. It's an immediate waste of 6-10 characters on meaningless metadata that GitHub can pull from the body and link for you. Further, the numbers are sequential, so frequently VERY similar, and highly prone to typos, which is harmful to anyone even minorly dyslexic.
1 comments

> that GitHub can pull from the body

I think that breaks the thing that people want which is being able to `git commit -m "Fix #234353"` without a body at all.

Use multiple messages.

`git commit -m "Fix actual words that humans read" -m "Fixes: #234353"`

You could probably script this based on branch if you're one of those people who names branches after ticket numbers.

But my actual advice is that I think -m is a bad pattern that leads to bad commit messages, and omitting the message argument opens your EDITOR, and you should use that.