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

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

    For Atom you can do

    git config --global core.editor "atom --wait"
    

    and similar for Visual Studio Code

    git config --global core.editor "code --wait"
    

    which will open up an Atom or Visual Studio Code window for you to commit through,

    or for Sublime Text:

    git config --global core.editor "subl -n -w"
    

提交回复
热议问题