# what is "rebase"?

5 messages from 2005-11-19 to 2005-11-20. Participants: Randal L. Schwartz, Johannes Schindelin, Andreas Ericsson.
Thread: https://gitlist.dev/t/2607

## Randal L. Schwartz, 2005-11-19 23:25

Subject: what is "rebase"?
Message-ID: <86fyps8bl1.fsf@blue.stonehenge.com>
URL: https://gitlist.dev/e/86fyps8bl1.fsf%40blue.stonehenge.com

```

Can someone point me to a simple explanation of what "rebase" is?
The git-rebase manpage doesn't define the word, or provide an example
of its use.

-- 
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!

```

## Johannes Schindelin, 2005-11-20 01:15

Subject: Re: what is "rebase"?
Message-ID: <Pine.LNX.4.63.0511200214280.11653@wbgn013.biozentrum.uni-wuerzburg.de>
URL: https://gitlist.dev/e/Pine.LNX.4.63.0511200214280.11653%40wbgn013.biozentrum.uni-wuerzburg.de
In-Reply-To: <86fyps8bl1.fsf@blue.stonehenge.com>

```
Hi,

On Sun, 19 Nov 2005, Randal L. Schwartz wrote:

> Can someone point me to a simple explanation of what "rebase" is?

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.

Hth,
Dscho

```

## Randal L. Schwartz, 2005-11-20 01:58

Subject: Re: what is "rebase"?
Message-ID: <86psow6pxl.fsf@blue.stonehenge.com>
URL: https://gitlist.dev/e/86psow6pxl.fsf%40blue.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!

```

## Randal L. Schwartz, 2005-11-20 02:10

Subject: Re: what is "rebase"?
Message-ID: <86hda86pdu.fsf@blue.stonehenge.com>
URL: https://gitlist.dev/e/86hda86pdu.fsf%40blue.stonehenge.com
In-Reply-To: <86psow6pxl.fsf@blue.stonehenge.com>

```
>>>>> "Randal" == Randal L Schwartz <merlyn@stonehenge.com> writes:

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

Nevermind.  Found rebase-from-internal.txt.

I understand much better now.

-- 
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!

```

## Andreas Ericsson, 2005-11-20 02:12

Subject: Re: what is "rebase"?
Message-ID: <437FDB8B.8030707@op5.se>
URL: https://gitlist.dev/e/437FDB8B.8030707%40op5.se
In-Reply-To: <86psow6pxl.fsf@blue.stonehenge.com>

```
Randal L. Schwartz wrote:
> Is this what I would use if I want to discard history except for
> major milestones?
> 

No.

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

man git-cherry-pick

> 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.
> 

If you do experimental development on a branch and want to throw stuff 
away (commits, tags, whatnot), you should run "git-reset". It can bring 
any combination of index and working tree back to any commit in the 
history of that branch.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

```
