4

When I try to commit something, not using "-m", I get this message immedately. I changed my default editor to atom with "-w" set, also tried "-W".

git config --global core.editor -w

Using vim, it works just fine...

I'm running OSX Yosemite.

So, how can I get this to work?

Edit: Atom opens properly, but the error message gets posted before it does.

Anshul Goyal
  • 73,278
  • 37
  • 149
  • 186
  • When you use atom from the command line, to you have to add `&` to open the editor and prevent that process from blocking the command line? – Greg Burghardt Mar 26 '15 at 12:27

1 Answers1

3

The Atom Editor Git Integration page, in the "Commit Editor" section states that you must pass the --wait flag as part of the editor command:

git config --global core.editor "atom --wait"
Greg Burghardt
  • 17,900
  • 9
  • 49
  • 92
  • Addendum: Changing two values (atom -w) into one ("atom --wait"): http://stackoverflow.com/questions/6435246/trouble-on-setting-the-git-core-editor/6435291#6435291 – Hannes Irgendwas Mar 26 '15 at 13:06