Today I learned
Multiline commit messages
Stefan Judis showed in a recent tweet how to write multiline git commit messages.
Instead of writing one very looong commit message:
git commit -m 'this is a very long commit message where I describe all the work I did and guess what it is a lot and this should be just a short description'
You can use the
css>-m flag multiple times. For every usage of it, a new line
git commit -m 'at first I did this' -m 'I also did this' -m 'oh and dont forget that'
That's such a cool git feature I always needed but never knew how to do it!
Comes in really handy when you did several things in one commit and makes the commit history much more readable. I use it all the time now!
I hope you enjoyed this post and learned something new. If you have any questions, feel free to reach out to me on Twitter ↗ or via Email ↗.
If you want to support me, you can buy me a coffee. I would be very happy about it!☕️ Buy me a coffee ☕️
I wish you a wonderful day! Marco