Answer the question
In order to leave comments, you need to log in
What is the best way to write messages in the /git comit -m"" command?
Let's say we have a block:
<div class="block">
<div class="block__element1">1</div>
<div class="block__element2">2</div>
</div>
<div class="block">
<div class="block__element1">1</div>
<div class="block__element2">2</div>
<div class="block__element3">3</div>
</div>
Answer the question
In order to leave comments, you need to log in
A good description usually has two parts. One describes why this change is needed: what was the problem / what was missing / what did not work. The second describes the decision and documents why that decision was chosen.
And this rule works both ways: if it's impossible to describe why the change was made, or why it's the way it is, it's most likely a bad change.
Option 1: Adds a block__element3 element to the block block;
Option 2: Adds text with a description to the block block;
Do you use Jira or similar? If yes, please write the task number from there. And so, it is better to write at a higher level, to explain why the changes were made in the code, that is, option 2 is closer.
I do not quite understand how to write a commit correctly so that it is clear to me and others.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question