[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Editors invoked by git rebase -i
From: |
Ralf Mattes |
Subject: |
Re: Editors invoked by git rebase -i |
Date: |
Wed, 2 Dec 2009 15:52:29 +0000 (UTC) |
User-agent: |
Pan/0.132 (Waxed in Black) |
On Wed, 02 Dec 2009 12:38:54 +0000, Trevor Daniels wrote:
> 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?
Either set the environment variable GIT_EDITOR to the editor of your choice
or use 'git-config core.editor <your-editor-here>'
This is explained in the manpage 'git-config(7)'
HTH Ralf Mattes
> Trevor
- 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, 2009/12/02
- Re: Editors invoked by git rebase -i,
Ralf Mattes <=
- 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