DEV Community

Discussion on: Write Git Commit Messages That Your Colleagues Will Love

Collapse
 
simeg profile image
Simon Egersand 🎈

I guess you do something like

git commit -m "Add field to schema"
Enter fullscreen mode Exit fullscreen mode

Instead you can do

git commit
Enter fullscreen mode Exit fullscreen mode

And git will open up your favorite editor (it defaults to $EDITOR I think) and you can put in a subject and body there. You separate them by a newline.