emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: git problems: >78 column commit message created by git revert. I'm s


From: Alan Mackenzie
Subject: Re: git problems: >78 column commit message created by git revert. I'm stuck. What do I do?
Date: Sat, 6 Oct 2018 09:17:13 +0000
User-agent: Mutt/1.10.1 (2018-07-13)

Hello, Noam.

On Wed, Oct 03, 2018 at 19:41:17 -0400, Noam Postavsky wrote:
> On Wed, 3 Oct 2018 at 08:56, Alan Mackenzie <address@hidden> wrote:

> > I'd like to use git commit --amend, but this can only change one of the
> > two commit messages created by git revert.
> >
> > How can I resolve this mess?

> For the record, you can change the messages of multiple previous
> commits using rebase:

> git rebase --interactive HEAD~2

> This will pop up your $EDITOR. Change the occurrences of "pick" into
> "reword", then save and exit. You will then be able to edit each
> commit message in turn (again, in $EDITOR).

Thanks.  I'll have a look at that sometime.  I actually fixed the
immediate problem with Stefan's suggestion, temporarily removing the git
hook.

-- 
Alan Mackenzie (Nuremberg, Germany).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]