Re: Modify/edit old commit messages

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Johannes Schindelin
Date: Thursday, February 1, 2007 - 5:28 am

Hi,

On Thu, 1 Feb 2007, Rodolfo Giometti wrote:


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

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Modify/edit old commit messages, Rodolfo Giometti, (Thu Feb 1, 4:49 am)
Re: Modify/edit old commit messages, Johannes Schindelin, (Thu Feb 1, 5:28 am)
Re: Modify/edit old commit messages, Linus Torvalds, (Thu Feb 1, 9:41 am)
Re: Modify/edit old commit messages, Johannes Schindelin, (Thu Feb 1, 10:17 am)