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

Re: switching upstream tips

From
Alex Riesen <raa.lkml@gmail.com>
Date
May 13, 2009, 09:05 UTC
Message-ID
<81b0412b0905130205u68237834o9172685974cbac4f@mail.gmail.com>
In-Reply-To
<4A0A858C.2070808@gmail.com>
2009/5/13 Ittay Dror <ittay.dror@gmail.com>:
Show 15 quoted lines
> Alex Riesen wrote:
>> 2009/5/13 Ittay Dror <ittay.dror@gmail.com>:
>>>
>>> tried git rebase, this is what i get:
>>> git rebase -i upstream master
>>> fatal: Needed a single revision
>>> Invalid base
>>>
>>
>> $ git checkout my-old-master-based-on-old-upstream
>> $ git rebase -i old-upstream
>>
>
> so i need to create an 'old-upstream' branch first, that is based on the tip
> of the old-upstream remote, right? how?

no. Just use the remote reference. Should be something like origin/master. It is the reference to the commit where to put your commits on. You can use the SHA1 there, if you wish. All the rebasing happens on and to that branch of yours (my-old-master-based-on-old-upstream in the example above)

> (thanks for the patience)

This patience is just about to end. Ever looked at the man pages? "git help git" can be a good start.

Previous: Ittay Dror
Message 12 of 12 in “switching upstream tips”
  1. Ittay DrorMay 13, 2009
  2. Alex RiesenMay 13, 2009
  3. Ittay DrorMay 13, 2009
  4. Alex RiesenMay 13, 2009
  5. Ittay DrorMay 13, 2009
  6. Johannes SixtMay 13, 2009
  7. Ittay DrorMay 13, 2009
  8. Johannes SixtMay 13, 2009
  9. Alex RiesenMay 13, 2009
  10. Alex RiesenMay 13, 2009
  11. Ittay DrorMay 13, 2009
  12. Alex RiesenMay 13, 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.