How to configure gedit as git core.editor?

后端 未结 2 1514
無奈伤痛
無奈伤痛 2020-12-28 16:10

I have gedit configured as git core.editor.

git config --global core.editor \"gedit\"

This works fine unless there is already a gedit windo

2条回答
  •  北海茫月
    2020-12-28 16:20

    All credit to VonC answer, but the -w makes gedit (3.18) crash on my ubuntu 16.04. Works fine without though:

    git config --global core.editor "gedit -s"
    

提交回复
热议问题