Reputation: 31
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
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