Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
When you run git config --global core.editor emacs -nw, your shell splits the command line into words before invoking git. Git thus sees "emacs -nw" as two separate arguments. It only needs one to put into the config file, so the other is ignored. (Actually, that's a lie but you can check the man page for details.) You can put quotes around a series of words to tell your shell not to break them up: git config --global core.editor "emacs -nw" will give "emacs -nw" to git as a single argument which will do what you want.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question