0

I am getting this error Aborting commit due to empty commit message when I use the git commit comand.

I have configured the atom editor using this code git config --global core.editor "atom --wait"

every time I run the command 'git commit' the atom code editor opens but in the terminal i get this error msg Aborting commit due to empty commit message I tried typing the commit msg and closed the editor but nothing is commited.

atom --wait , atom -w and atom --add --wait are not working it opens atom and immediately show next terminal prompt.

Dharmaraj
  • 174
  • 2
  • 13

4 Answers4

0

Did you try this-> git commit -m "insert commit message here"

guest
  • 1
  • When he use this, atom won't open because this command with -m and "message" flag just commit with that message, no editor need to be opened. – dunajski Jul 12 '19 at 08:37
  • I don't want to use `git commit -m` i want to write a commit message in atom code editor. – Dharmaraj Jul 12 '19 at 08:55
0

It is good that atom is opening. I've tried this with VSC and Sublime and it worked but as you can see you were trying to commit with blank message.

  1. Type git commit
  2. Wait until atom open
  3. Type your message.
  4. Save file and close editor

In that situation you should see proper result of git commit

EDIT: To check that --wait flag works. Type in console atom --wait (or maybe your terminal accpet only -w flag, dunno)

If this flag works terminal prompt should appear after closing atom. If doesn't should act like without flag so when you type, it opens atom and immediately show next terminal prompt.

dunajski
  • 381
  • 3
  • 15
  • it's lookie the wait flag is not working properly. for both the commands `atom --wait` and `atom -w` it opens atom and immediately show next terminal prompt. – Dharmaraj Jul 12 '19 at 12:13
0

Try using Atom 1.25. https://github.com/atom/atom/issues/1433#issuecomment-355721229

This should fix it.

Dev.rb
  • 487
  • 6
  • 14
0

Uninstalling and reinstalling atom editor solved my issue.

Dharmaraj
  • 174
  • 2
  • 13