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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With