Hannes Irgendwas
Hannes Irgendwas

Reputation: 45

git: Aborting commit due to empty commit message (editor: atom)

When I try to commit something, not using "-m", I get this message immedately. I changed my default editor to atom with "-w" set, also tried "-W".

git config --global core.editor -w

Using vim, it works just fine...

I'm running OSX Yosemite.

So, how can I get this to work?

Edit: Atom opens properly, but the error message gets posted before it does.

Upvotes: 4

Views: 2318

Answers (1)

Greg Burghardt
Greg Burghardt

Reputation: 18783

The Atom Editor Git Integration page, in the "Commit Editor" section states that you must pass the --wait flag as part of the editor command:

git config --global core.editor "atom --wait"

Upvotes: 3

Related Questions