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

Re: git rebase -i

From
Wincent Colaiuta <win@wincent.com>
Date
Feb 19, 2009, 10:15 UTC
Message-ID
<6887C6DB-E9C8-4DC8-BD1E-C20E92271FA5@wincent.com>
In-Reply-To
<20090219101154.GB16119@coredump.intra.peff.net>
El 19/2/2009, a las 11:11, Jeff King escribió:
Show 23 quoted lines
> On Thu, Feb 19, 2009 at 10:59:15AM +0100, Wincent Colaiuta wrote:
>
>>> If a sample of git users would expect "git rebase -i" to let you
>>> rebase the last few commits, then it doesn't really matter all that
>>> much what N is.  10 seems a reasonable default as any.
>>
>> That's exactly the problem. Most git users aren't going to expect  
>> "git
>> rebase -i" to let you "rebase the last few commits".
>>
>> Rebase is mostly used, talked about, and conceptualized in terms of
>> rebasing onto other _branches_.
>
> Actually, I don't think that's true anymore with "rebase -i"; it is
> probably most convenient way in core git to rewrite the history of a
> patchset. E.g., a core part of my workflow as a contributor is:
>
>  $ git checkout -b jk/topic origin
>  $ while true; do hack hack hack; commit commit commit; done
>  $ git rebase -i origin
>
> which gives me a list of everything on the topic, ready to be
> reordered, squashed, or edited as appropriate.
Yes, I do the same. But notice that you did "git rebase -i -- 
 >>>origin<<<---". Seems to me you are definitely _thinking_ in terms  
of your topic _branch_ and not in terms of "the last few commits".

Cheers, Wincent

Previous: Jeff KingNext: Jeff King
Message 6 of 28 in “git rebase -i”
  1. John TapsellFeb 19, 2009
  2. Wincent ColaiutaFeb 19, 2009
  3. John TapsellFeb 19, 2009
  4. Wincent ColaiutaFeb 19, 2009
  5. Jeff KingFeb 19, 2009
  6. Wincent ColaiutaFeb 19, 2009
  7. Jeff KingFeb 19, 2009
  8. Theodore TsoFeb 19, 2009
  9. Teemu LikonenFeb 19, 2009
  10. John TapsellFeb 19, 2009
  11. Sitaram ChamartyFeb 19, 2009
  12. John TapsellFeb 19, 2009
  13. Stephan BeyerFeb 23, 2009
  14. Pieter de BieFeb 19, 2009
  15. Junio C HamanoFeb 19, 2009
  16. Marc BranchaudFeb 19, 2009
  17. Nazri RamliyFeb 19, 2009
  18. Thomas RastFeb 19, 2009
  19. John TapsellFeb 19, 2009
  20. Jeff KingFeb 19, 2009
  21. Jay SoffianFeb 19, 2009
  22. Johannes SchindelinFeb 19, 2009
  23. Jay SoffianFeb 19, 2009
  24. Giuseppe BilottaFeb 19, 2009
  25. Johannes SchindelinFeb 20, 2009
  26. Junio C HamanoFeb 20, 2009
  27. Jay SoffianFeb 20, 2009
  28. Michael J GruberFeb 20, 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.