Re: Edit log message after commit
- From
- Brian Gerst <bgerst@didntduck.org>
- Date
- Sep 29, 2005, 04:58 UTC
- Message-ID
- <433B7459.3040307@didntduck.org>
- In-Reply-To
- <dhfjcu$36f$1@sea.gmane.org>
Kevin Leung wrote:
> Hi, > > Is there any method to edit the log message after committed? I couldn't > find any information in Documentation and in git mailing list.
The commit must be at the head, or else you can't change it without breaking the chain of following commits. If you are using Cogito, use cg-admin-uncommit and then re-commit it. Otherwise, create a new commit object for the same tree and parent(s) as the old commit, with the new message. The new commit object is your new head.
-- Brian Gerst