DEV Community

Discussion on: How to write meaningful and better commit messages

Collapse
 
incrementis profile image
Akin C. • Edited

Hello Rubin,

I like your article very much and believe that the structure you offer can lead to meaningful and better commit messages.
It will help me improve my git commits :).

There's only one little thing that I don't quite understand:
"...Use the imperative mood, as in "Add ability to export to JSON" (not "Adding" or "Added")..."

Why the imperative mood (I'm actually using "adding" or "added")?

Collapse
 
rubiin profile image
Rubin

Imperative of that would be add instead of adding or added

Collapse
 
rubiin profile image
Rubin

imperative because it tells me what that commit accomplishes, not what the developer has done.

Collapse
 
incrementis profile image
Akin C.

Thank you for your reply :).
I think there is a misunderstanding with my question.
My question is, why should we use imperative?
Is there a logic or rule that says using the imperative mood in the comment section is better?

Thread Thread
 
rubiin profile image
Rubin

I think this blog explains that danclarke.com/git-tense