DEV Community

Discussion on: A Beginner’s Guide to Git — How to Write a Good Commit Message

Collapse
 
baharajr profile image
Bennett(he/him)

I use git commit without -m and it opens up my default editor (Vim),

Then the first line defines the title
The second line will define an issue I am working on/fixing if any
The third line will have a well-written description of the commit

Collapse
 
gaelgthomas profile image
Gaël Thomas

Thank you for sharing this. Indeed we can do that. I found the solution with the two "-m" more comfortable to explain. That said, yours is excellent for taking the time to edit the commit! 😃

Collapse
 
baharajr profile image
Bennett(he/him)

Yours was well documented and fits so well for beginners. Thank you for taking your time on it.