DEV Community

Discussion on: What are some things that you don't like about git?

Collapse
 
pandademic profile image
Pandademic

I just feel we don't need to open $EDITOR every time we want to commit something.

Thread Thread
 
darkwiiplayer profile image
𒎏Wii 🏳️‍⚧️

Technically there's nothing wrong with that, but it is a sign that you might be doing something wrong. If you make a commit, you should be spending some time thinking about what you are doing, what you want to write, and what files are affected.

Having an editor open gives you that time. Using -m on the other hand only discourages writing proper multiline messages when they are actually needed. When you already wrote a summary and notice you might want to add a few more lines, it's way easier if you already have an editor than if you just wrote the whole thing on the commandline and would have to delete it all then reproduce it in the editor.

Thread Thread
 
pandademic profile image
Pandademic

very true... I didn't think of it like that

Some comments have been hidden by the post's author - find out more