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

Re: RFC: git rebase -i and root commits

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jul 23, 2008, 09:05 UTC
Message-ID
<alpine.DEB.1.00.0807231103230.2830@eeepc-johanness>
In-Reply-To
<20080723020232.GF5904@leksak.fem-net>
Hi,
On Wed, 23 Jul 2008, Stephan Beyer wrote:
Show 12 quoted lines
> Eric Raible wrote:
> > My normal workflow is to create a .gitignore in my initial commit.
> > 
> > When I later realize that I've forgotten something from that file
> > I could of course just commit the changes, but I'd rather use "git rebase -i"
> > in the normal way to make myself appear smarter than I am.
> > Especially since this realization usually comes early on
> > (and certainly before publishing).
> > 
> > But rebase can't go all the way to a root ("fatal: Needed a single revision").
> 
> I think this has been fixed recently.
No, it has not.

What has been fixed is that you can cherry-pick a root commit now, not rebase onto nothing.

While I am somewhat sympathetic with Eric's use case, I am not sure that we should support it with rebase -i.

Ciao, Dscho

Previous: Stephan Beyer
Message 3 of 3 in “RFC: git rebase -i and root commits”
  1. Eric RaibleJul 23, 2008
  2. Stephan BeyerJul 23, 2008
  3. Johannes SchindelinJul 23, 2008

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.