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

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

    This works for PowerShell and cmder 1.2 (when used with PowerShell). In file ~/.gitconfig:

    [core]
        editor = 'c:/program files/sublime text 3/subl.exe' -w
    

    How can I make Sublime Text the default editor for Git?

提交回复
热议问题