Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 733
Nilesh Avatar asked Jun 14 '26 14:06

Nilesh


1 Answers

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.

like image 97
VonC Avatar answered Jun 17 '26 12:06

VonC