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

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

    Based on VonC's suggestion, this worked for me (was driving me crazy):

    git config --global core.editor "'C:/Program Files (x86)/Sublime Text 3/subl.exe' -wait"
    

    Omitting -wait can cause problems, especially if you are working with Gerrit and change ids that have to be manually copied to the bottom of your commit message.

提交回复
热议问题