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:
-w
git config --global core.editor "gedit -s"