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

Re: Recovering from commit --amend in rebase --interactive

From
Peter Krefting <peter@softwolves.pp.se>
Date
Jun 1, 2010, 10:40 UTC
Message-ID
<alpine.DEB.2.00.1006011136590.2352@ds9.cixit.se>
In-Reply-To
<4C04D78A.2090103@panasas.com>
Boaz Harrosh:
> The prints are clear enough.

The problem is that you stop reading them after a while. I've been using rebase actively for a couple of years, so I don't necessary pay much attention to what it says anymore.

And besides, if I forget to do the edits in another xterm, the help text is usually gone by the time I need to continue anyway...

> What?!? no, why. Just empty out the message at editor and save. It will 
> abort any commit and do nothing.
Oh. That's useful to know next time it happens :-)
Jan Krüger:
Show 5 quoted lines
> It might be easy to miss, but it's there, right in the editor:
>
> # Please enter the commit message for your changes. Lines starting
> # with '#' will be ignored, and *an empty message aborts the commit*.
> (Emphasis added)

Indeed. There goes thinking you know what you do after having used the tools for a long time... :-)

-- 
\\// Peter - http://www.softwolves.pp.se/
Previous: Boaz HarroshNext: Jan Krüger
Message 3 of 8 in “Recovering from commit --amend in rebase --interactive”
  1. Peter KreftingJun 1, 2010
  2. Boaz HarroshJun 1, 2010
  3. Peter KreftingJun 1, 2010
  4. Jan KrügerJun 1, 2010
  5. Ævar Arnfjörð BjarmasonJun 1, 2010
  6. Junio C HamanoJun 2, 2010
  7. Ævar Arnfjörð BjarmasonJun 3, 2010
  8. Gabriel FilionJun 1, 2010

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.