Answer the question
In order to leave comments, you need to log in
What is the correct way to use git commit comments?
Why do you write comments on commits? So that later you can understand to which commit changes should be rolled back or for reporting to the authorities or for something else?
Some time ago I got acquainted and started to apply a well-defined approach to naming in my development, for example in css classes:
.ComponentName { }
.ComponentName--modifier { }
.ComponentName-elementName { }
.ComponentName-elementName--modifier { }
Answer the question
In order to leave comments, you need to log in
Commits should reflect the changes made at a particular moment, the format and completeness are determined by yourself or guided by company policy.
Ideally, when some kind of project management system is used, then the ticket ID is indicated in the commit and you can always see a detailed history of changes - what, where, when, why and why.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question