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

Re: what is "rebase"?

From
Randal L. Schwartz <merlyn@stonehenge.com>
Date
Nov 20, 2005, 01:58 UTC
Message-ID
<86psow6pxl.fsf@blue.stonehenge.com>
In-Reply-To
<Pine.LNX.4.63.0511200214280.11653@wbgn013.biozentrum.uni-wuerzburg.de>
>>>>> "Johannes" == Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Johannes> How about the definition in Documentation/glossary.txt?
>> rebase::
>> To clean a branch by starting from the head of the main line of
>> development ("master"), and reapply the (possibly cherry-picked)
>> changes from that branch.

Well, I got what I wanted... someone pointing me to a simple explanation. However, I'm still lost. When would I do this, and what will the effect be?

Is this what I would use if I want to discard history except for major milestones? Like if I had:

        A - edit - edit - edit - B - edit - edit - edit - C
and I wanted to really just retain:
        A - B - C
Or is this just to make it look like:
        C

Still not sure what "cherry-pick" is either. And that's *not* in the glossary. :)

I'm just worried about my archive getting bigger and bigger and having lots of junk in it that I can't get rid of.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
Previous: Johannes SchindelinNext: Randal L. Schwartz
Message 3 of 5 in “what is "rebase"?”
  1. Randal L. SchwartzNov 19, 2005
  2. Johannes SchindelinNov 20, 2005
  3. Randal L. SchwartzNov 20, 2005
  4. Randal L. SchwartzNov 20, 2005
  5. Andreas EricssonNov 20, 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.