Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it a bad practice to write multiline commit messages on git? [closed]

My commit messages on git usually look like the following:

* Fix bug abc
* Refactor xyz
* Document 123
* ...

I'm wondering whether this is a bad practice and I should prefer one-line commit messages or at least provide a header line.

On the other hand, this would be less comfortable to write ...

What are your recommendations?

like image 548
KnorxThieus Avatar asked Oct 26 '25 04:10

KnorxThieus


1 Answers

Git standard (even though you can do as you please) is:

  • single line with a brief summary of the change
  • empty line
  • All the gory details in multiple lines
like image 70
eftshift0 Avatar answered Oct 27 '25 20:10

eftshift0



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!