How to configure gedit as git core.editor?

99封情书 提交于 2019-12-03 01:30:48
VonC

The simplest way to solve this would be to upgrade gedit (which is at 3.8.3 with an Ubuntu 13.10)

In 3.x, -s (standalone) and -w (wait) are available.
That allows for (as commented by Fortisimo):

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

As Gábor Lipták comments below, this works with gedit3, which is installed with:

sudo apt-get install gedit-common/trusty 
sudo apt-get install gedit/trusty

(on Linux Mint)

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"
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!