I have gedit configured as git core.editor.
git config --global core.editor \"gedit\"
This works fine unless there is already a gedit windo
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"
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)