Thread (5 messages) flat view 5 messages, 4 authors, 2016-06-15

Re: Modify/edit old commit messages

From: Johannes Schindelin <hidden>
Date: 2016-06-15 22:42:51

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help