Ho gedit configurato come git core.editor.Come configurare gedit come git core.editor?
git config --global core.editor "gedit"
Questo funziona bene a meno che non sia già aperta una finestra gedit. In tal caso, COMMIT_EDITMSG viene aperto nella finestra esistente e gedit restituisce immediatamente. Git finisce con un messaggio di commit vuoto e fallisce.
Questo sito (http://fabianschuiki.wordpress.com/2012/05/20/use-gedit-as-git-editor/) suggerisce l'utilizzo di "gedit -s -w", ma io non avere quelle opzioni (e --new-finestra non funziona):
$ gedit -V
gedit - Version 2.28.4
$ gedit --help
Usage:
gedit [OPTION...] [FILE...] - Edit text files
Help Options:
-h, --help Show help options
--help-all Show all help options
--help-gtk Show GTK+ Options
--help-sm-client Show session management options
Application Options:
-V, --version Show the application's version
--encoding=ENCODING Set the character encoding to be used to open the files listed on the command line
--list-encodings Display list of possible values for the encoding option
--new-window Create a new toplevel window in an existing instance of gedit
--new-document Create a new document in an existing instance of gedit
--display=DISPLAY X display to use
'' 'git config core.editor --global "gedit -w -s"' '' – Fortisimo
@Fortisimo buon punto. Ho incluso il tuo commento nella risposta per maggiore visibilità. – VonC
Per installare gedit 3 per linux mint: sudo apt-get install gedit-common/trust sudo apt-get install gedit/trusty –