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

Re: Edit log message after commit

From
Junio C Hamano <junkio@cox.net>
Date
Sep 30, 2005, 08:24 UTC
Message-ID
<7vfyrn6k02.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<87br2bq2ot.wl@mail2.atmark-techno.com>
Yasushi SHOJI <yashi@atmark-techno.com> writes:
> first, create new branch at where you wanna change the message
>
>     git checkout -b temp HEAD^^^   # hmm... HEAD^3 doesn't work

Because it should be spelled HEAD~3. HEAD^3 is "the third parent of HEAD" and usually does not exist, unless you are talking about an Octopus merge of three or more branches.

Previous: Yasushi SHOJINext: Catalin Marinas
Message 7 of 9 in “Edit log message after commit”
  1. Kevin LeungSep 29, 2005
  2. Junio C HamanoSep 29, 2005
  3. Tony LuckSep 29, 2005
  4. Brian GerstSep 29, 2005
  5. Kevin LeungSep 29, 2005
  6. Yasushi SHOJISep 29, 2005
  7. Junio C HamanoSep 30, 2005
  8. Catalin MarinasSep 29, 2005
  9. Kevin LeungSep 30, 2005

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.