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

[RFC] checkout --rebase

From
Ramkumar Ramachandra <artagnon@gmail.com>
Date
Jul 19, 2013, 10:21 UTC
Message-ID
<CALkWK0m-ZpVvvgAB_yzooah0=veeNDudahs=4ur2YHN03h-h4g@mail.gmail.com>
Hi,
I'm often work on small topic branches, and find myself doing this quite often:
  # on branch master
  $ git checkout um-build
  $ git rebase master

This is horribly inefficient; the first operation takes a _really_ long time to complete, since master updates itself very often and I have to check out an old worktree. So, I work around this issue by doing:

  # on branch master
  $ git checkout -b um-build-2
  $ git cherry-pick ..um-build
  $ git branch -M um-build

... and I scripted it. Perhaps we should get this functionality in core, as `git checkout --rebase` (or something)?

Thanks.
Next: Sebastian Staudt
Message 1 of 6 in “[RFC] checkout --rebase”
  1. Ramkumar RamachandraJul 19, 2013
  2. Sebastian StaudtJul 19, 2013
  3. Ramkumar RamachandraJul 19, 2013
  4. Ramkumar RamachandraJul 19, 2013
  5. Ramkumar RamachandraJul 19, 2013
  6. Ramkumar RamachandraJul 19, 2013

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.