How can I set up an editor to work with Git on Windows?

后端 未结 30 1237
悲哀的现实
悲哀的现实 2020-11-22 13:57

I\'m trying out Git on Windows. I got to the point of trying \"git commit\" and I got this error:

Terminal is dumb but no VISUAL nor

30条回答
  •  旧时难觅i
    2020-11-22 14:07

    I use Cygwin on Windows, so I use:

    export EDITOR="emacs -nw"
    

    The -nw is for no-windows, i.e. tell Emacs not to try and use X Window.

    The Emacs keybindings don't work for me from a Windows shell, so I would only use this from a Cygwin shell... (rxvt is recommended.)

提交回复
热议问题