On Thu, Jan 15, 2009 at 3:17 PM, PÃ¥l BergstrÃ¶m
Which means it’s time for me to read the documentation myself.
“The editor used to edit the commit log message will be chosen from
the GIT_EDITOR environment variable, the core.editor configuration
variable, the VISUAL environment variable, or the EDITOR environment
variable (in that order).”
So if git config --get core.editor says nothing, then you need to find
the value of one of those environment variables to find out which
editor you’re using.
If none of them are set, I have no idea what editor you’re getting…
but you still need to save your changes to the file and exit the
Two probable default editors are nano and vi:
Nano exits with ctrl-x (and Y to question about saving changes).
vi saves and exits with :wq
If you don’t need long commit messages you can avoid the editor entirely
git commit -m “your message here”
Michael C. Libby