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

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

    This is my setup to use Geany as an editor for Git:

    git config --global core.editor C:/path/to/geany.bat
    

    with the following content in geany.bat:

    #!/bin/sh
    "C:\Program Files\Geany\bin\Geany.exe" --new-instance "$*"
    

    It works in both a DOS console and msysgit.

提交回复
热议问题