Commit Messages I Have Seen

preview_player
Показать описание
Speaker: Billie Thompson

A quick tour of how to to structure commit messages, and what should go in each commit.

This talk is based around real world examples that I have seen, will include 7 quick tips to make your commit messages rock, starting from the basics of how Git and GitHub format your commit message and getting it to display right, all the way through to what tense you should write your commit messages.
Рекомендации по теме
Комментарии
Автор

I like discussions about "commit messages", so first thanks for the lightning talk!


And I can really recommand to use a simple prefix ([+], [*], [!], ...) so everybody can easily have a overview in git log.

LarsMoelleken
Автор

Honestly, a lot of this advice is useless. There is no valuable difference between a commit message that ends in a period and one that doesn't.

And I would argue that the imperative mood is the _worst_ way to communicate an action taken in the past. Surely, the simple past tense ("Created a new entity."), or simple present ("Creates a new entity.") would be more readable. You should describe what a commit _did_ or _is doing_, not what a programmer should _have done_. A commit history is the opposite of a to-do list.

TheCoryKid