DEV Community

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

Collapse
 
r0272mrz profile image
Sam • Edited

I find that if it's difficult to describe a change in just the title/subject line (and stick to the character limit), then I am usually committing too much at once and should break it up into smaller commits.

Collapse
 
gaelgthomas profile image
Gaël Thomas

Yes, it is! It's a great practice to do smaller commits.
As I recommend in my post, you can use the following command: "git commit -m 'put a title' -m 'put a description'".
With this, you can write a small title and add details in the description part of the commit.

Hope it helps you! 😊