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

Re: how to edit commit message in history

From
Tthestar@fussycoder.id.au <thestar@fussycoder.id.au>
Date
Jan 16, 2009, 04:31 UTC
Message-ID
<20090116153156.tfzar9idq8gwk0wg@webmail.fussycoder.id.au>
In-Reply-To
<20090116035714.GA6984@b2j>
You can't, that would default the whole point of git's sha1 hashes!

If you change a commit, you will change the sha1 hash of that commit, and every subsequent commit. There is no way around it.

Quoting bill lam <cbill.lam@gmail.com>:
Show 17 quoted lines
> I made some typos in commit messages, how to edit them without
> affecting everything else?
>
> Thanks in advance.
>
> --
> regards,
> ====================================================
> GPG key 1024D/4434BAB3 2008-08-24
> gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
> 唐詩311 無名氏  雜詩
>     盡寒食雨草萋萋  著麥苗風柳映堤  等是有家歸未得  杜鵑休向耳邊啼
> --
> 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: Jike SongNext: Jakub Narebski
Message 3 of 4 in “how to edit commit message in history”
  1. bill lamJan 16, 2009
  2. Jike SongJan 16, 2009
  3. thestar@fussycoder.id.auJan 16, 2009
  4. Jakub NarebskiJan 16, 2009

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.