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

Re: Question about git rebase --onto

From
Tay Ray Chuan <rctay89@gmail.com>
Date
Feb 17, 2010, 10:19 UTC
Message-ID
<be6fef0d1002170219j27c79877k830f8d853719ea2e@mail.gmail.com>
In-Reply-To
<4B7BB604.20205@obry.net>
Hi,
On Wed, Feb 17, 2010 at 5:25 PM, Pascal Obry <pascal@obry.net> wrote:
> $ git clone http://git.sv.gnu.org/r/v2p.git
in case anyone is wondering, the equivalent git:// url is
  git://git.sv.gnu.org/v2p.git
> $ git rebase --onto v3.1 HEAD~3 HEAD

Why do you add the last parameter ("HEAD")? If I run the rebase without it, it works fine (ie. not on a detached HEAD).

-- 
Cheers,
Ray Chuan
Previous: Pascal ObryNext: Pascal Obry
Message 9 of 12 in “Question about git rebase --onto”
  1. Pascal ObryFeb 2, 2010
  2. Junio C HamanoFeb 2, 2010
  3. Junio C HamanoFeb 2, 2010
  4. Pascal ObryFeb 2, 2010
  5. Junio C HamanoFeb 4, 2010
  6. Pascal ObryFeb 4, 2010
  7. Junio C HamanoFeb 4, 2010
  8. Pascal ObryFeb 17, 2010
  9. Tay Ray ChuanFeb 17, 2010
  10. Pascal ObryFeb 17, 2010
  11. Tay Ray ChuanFeb 17, 2010
  12. Pascal ObryFeb 17, 2010

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.