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

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

    I'm using GitHub for Windows which is a nice visual option. But I also prefer the command line, so to make it work when I open a repository in a Git shell I just set the following:

    git config --global core.editor vim
    

    which works great.

提交回复
热议问题