git/list[1] front-page[2] threads[3] people[4] search[5] about
 

How do I modify the commit message (not the topmost one) of a git commit?

From
NJNorah Jones <nh.jones01@gmail.com>
Date
May 4, 2013, 06:31 UTC
Message-ID
<abcd1234abc123ab12a0000000345000020000004001@gmail.com>
Hi, 
I did a series of commits and now I find one of my commit (not the topmost one) has an incorrect commit message. How can I change that specific one? I believe "git commit --amend" works only for the last commit.

Thanks, Norah Jones

Next: Johan Herland
Message 1 of 2 in “How do I modify the commit message (not the topmost one) of a git commit?”
  1. Norah JonesMay 4, 2013
  2. Johan HerlandMay 4, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.