[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Editors invoked by git rebase -i
From: |
Reinhold Kainhofer |
Subject: |
Re: Editors invoked by git rebase -i |
Date: |
Wed, 2 Dec 2009 16:46:02 +0100 |
User-agent: |
KMail/1.12.2 (Linux/2.6.31-15-generic; KDE/4.3.2; i686; ; ) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am Mittwoch, 2. Dezember 2009 13:38:54 schrieb Trevor Daniels:
> I used "git rebase -i" to combine several commits into
> one for the first time recently. This was in ubuntu.
> It threw me for a while because the first editor it
> brought up was nano (to edit the list of commits) and
> then vi (to edit the commit messages). Not being
> familiar with either, the way to save and exit took me
> quite a few minutes to work out.
>
> It it possible to configure git to use another editor,
> like the ubuntu default, gedit, for these?
git-rebase uses the $EDITOR environment variable.
I suppose setting EDITOR=gedit should work... e.g. adding
export EDITOR=gedit
to your .bashrc
Alternatively you can also simply give it on the command line
EDITOR=gedit git rebase -i
Cheers,
Reinhold
- --
- ------------------------------------------------------------------
Reinhold Kainhofer, address@hidden, http://reinhold.kainhofer.com/
* Financial & Actuarial Math., Vienna Univ. of Technology, Austria
* http://www.fam.tuwien.ac.at/, DVR: 0005886
* LilyPond, Music typesetting, http://www.lilypond.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iD8DBQFLFou7TqjEwhXvPN0RArcXAKCb0nSR88pxttTyhXFoNo7KA7+8ugCdE38f
jeoNdxwwxTp5+IrvJIszA94=
=9tAO
-----END PGP SIGNATURE-----
- Editors invoked by git rebase -i, Trevor Daniels, 2009/12/02
- Re: Editors invoked by git rebase -i, Graham Percival, 2009/12/02
- Re: Editors invoked by git rebase -i,
Reinhold Kainhofer <=
- Re: Editors invoked by git rebase -i, Ralf Mattes, 2009/12/02
- Re: Editors invoked by git rebase -i, Jonathan Kulp, 2009/12/02
- Re: Editors invoked by git rebase -i, Johannes Schindelin, 2009/12/02
- Re: Editors invoked by git rebase -i, Mark Knoop, 2009/12/02
- Re: Editors invoked by git rebase -i, David Kastrup, 2009/12/02
- Re: Editors invoked by git rebase -i, Jean-Charles Malahieude, 2009/12/02