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

后端 未结 30 1243
悲哀的现实
悲哀的现实 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:08

    This worked for me:

    1. Add the directory which contains the editor's executable to your PATH variable. (E.g. "C:\Program Files\Sublime Text 3\")
    2. Reboot your computer.
    3. Change the core.editor global Git variable to the name of the editor executable without the extension '.exe' (e.g. git config --global core.editor sublime_text)

    That's it!

    NOTE: Sublime Text 3 is the editor I used for this example.

提交回复
热议问题