Re: Modify/edit old commit messages
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Feb 1, 2007, 12:28 UTC
- Message-ID
- <Pine.LNX.4.63.0702011326130.22628@wbgn013.biozentrum.uni-wuerzburg.de>
- In-Reply-To
- <20070201114909.GV8705@enneenne.com>
Hi,
On Thu, 1 Feb 2007, Rodolfo Giometti wrote:
> I'm puzzled... how can I modify or edit old commit messages? :)
Short answer: you can't.
Slightly longer answer: since the object name is calculated from data including the commit message, there is no way you can change it.
However, you can start from a certain commit in history, and _recommit_ a commit. There, you can edit the message and rebase the other commits on top of it. NOTE: the resulting commit is _not_ easily mergeable for people who track your branch.
Hth, Dscho