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

Re: what is "rebase"?

From
Andreas Ericsson <ae@op5.se>
Date
Nov 20, 2005, 02:12 UTC
Message-ID
<437FDB8B.8030707@op5.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
Previous: Randal L. Schwartz
Message 5 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.