Writing good Git commit messages matters!
A thread about how to write clean commit messages:
A thread about how to write clean commit messages:



Examples:

- fixed
- done
- added 2 class

- add missing validation to login form
- fix bug for calculating cart price

Imperative mood means that the commit message should be written as if giving a command or instruction.
Examples:

- I have implemented ...
- this commit will ...
- more fixes for broken stuff

- add ...
- fix ...
- remove ...

Git commits can be checked out, merged, reverted or cherry-picked.
A properly formed Git commit line should be able to complete the following sentence:
- If applied, this commit will...
In order to complete this sentence, using present tense is needed.

If you use project management tools such as Jira, GitLab or Azure DevOps then you can add the reference-id to the actual working item.
Template:
#<item-id>:<message>
Example:
#d342da: Fix bug on client validation

Most of the time if you have long commit messages it means that you violate the following principle:
- Commit early & commit often
If you take baby steps and commit your work frequently, then you won't have issues with the commit length.

- make your commit messages meaningful, explaining the reason for the change
- use the imperative mood
- use present tense
- add link reference to the actual user story, task or bug
- commit early & commit often
Enjoy!

