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

后端 未结 30 1341
悲哀的现实
悲哀的现实 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 13:57

    WordPad!

    I'm happy using Vim, but since I'm trying to introduce Git to the company I wanted something that we'd all have, and found that WordPad seems to work okay (i.e. Git does wait until you're finished editing and close the window).

    git config core.editor '"C:\Program Files\Windows NT\Accessories\wordpad.exe"'
    

    That's using Git Bash on msysgit; I've not tried from the Windows command prompt (if that makes any difference).

提交回复
热议问题