Nilesh
Nilesh

Reputation: 31

Git commit message not working with atom 1.21.1

I am trying to add commit message using atom and setting it as my default editor using
git config --global core.editor "atom" but as soon as I enter git commit it opens atom and gives the message aborting commit due to empty commit message. I also tried adding --wait. After searching for a while I found this was the problem in previous versions but was fixed later but I don't know then why I am facing this problem

Upvotes: 3

Views: 221

Answers (1)

VonC
VonC

Reputation: 1323483

Try instead:

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

There was an old bug (atom/atom issue 3074) in 2015, but it should work now (Q4 2017).

See also atom/atom issue 12027.

Upvotes: 1

Related Questions