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

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

    I prefer to use Emacs. Getting it set up can be a little tricky.

    1. Download Emacs and unpack it somewhere like c:\emacs.
    2. Run c:\emacs\bin\addpm.exe. You need to right-click and "Run as Administrator" if you are using Windows Vista or above. This will put the executables in your path.
    3. Add (server-start) somewhere in your .emacs file. See the Emacs Windows FAQ for advice on where to put your .emacs file.
    4. git config --global core.editor emacsclientw

    Git will now open files within an existing Emacs process. You will have to run that existing process manually from c:\emacs\bin\runemacs.exe.

提交回复
热议问题