I edited a commit message by running git rebase -i <commit-yesterday>
and selecting reword
option for rebasing. Afterward, I ran push --force
to publish the change to the remote repository. My expectation is that when I run git log
, I see a list like the following:
commit 11111111
Date: Today 16:00:00
Message: The commit created Today at 16:00:00
commit 22222222
Date: Today 14:00:00
Message: The commit created Today at 14:00:00
commit 33333333
Date: Today 10:00:00
Message: The commit created Today at 10:00:00
commit 44444444
Date: Yesterday 15:00:00
Message: The message of this commit updated Today at 17:00:00 while it was created yesterday at 15:00:00
But I see the following list that the updated commit is at the top with the old commit date and a new commit ID and the old commit is shown with its old message and old commit ID:
commit 55555555
Date: Yesterday 15:00:00
Message: The message of this commit updated Today at 17:00:00 while it was created yesterday at 15:00:00
commit 11111111
Date: Today 16:00:00
Message: The commit created Today at 16:00:00
commit 22222222
Date: Today 14:00:00
Message: The commit created Today at 14:00:00
commit 33333333
Date: Today 10:00:00
Message: The commit created Today at 10:00:00
commit 44444444
Date: Yesterday 15:00:00
Message: The commit created Yesterday at 15:00:00