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

后端 未结 30 1362
悲哀的现实
悲哀的现实 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条回答
  •  鱼传尺愫
    2020-11-22 14:06

    Building on Darren's answer, to use Notepad++ you can simply do this (all on one line):

    git config --global core.editor "'C:/Program Files/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin"
    

    Obviously, the C:/Program Files/Notepad++/notepad++.exe part should be the path to the Notepad++ executable on your system. For example, it might be C:/Program Files (x86)/Notepad++/notepad++.exe.

    It works like a charm for me.

提交回复
热议问题