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

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

    Thanks to the Stack Overflow community ... and a little research I was able to get my favorite editor, EditPad Pro, to work as the core editor with msysgit 1.7.5.GIT and TortoiseGit v1.7.3.0 over Windows XP SP3...

    Following the advice above, I added the path to a Bash script for the code editor...

    git config --global core.editor c:/msysgit/cmd/epp.sh
    

    However, after several failed attempts at the above mentioned solutions ... I was finally able to get this working. Per EditPad Pro's documentation, adding the '/newinstance' flag would allow the shell to wait for the editor input...

    The '/newinstance' flag was the key in my case...

    #!/bin/sh
    "C:/Program Files/JGsoft/EditPadPro6/EditPadPro.exe" //newinstance "$*"
    

提交回复
热议问题