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

Re: nicer frontend to get rebased tree?

From
PCPaolo Ciarrocchi <paolo.ciarrocchi@gmail.com>
Date
Aug 23, 2008, 08:52 UTC
Message-ID
<loom.20080823T084556-260@post.gmane.org>
In-Reply-To
<20080823071552.GU23334@one.firstfloor.org>
Andi Kleen <andi <at> firstfloor.org> writes:
Show 19 quoted lines
> 
> >   $ git remote update
> >   $ git reset --hard origin/master  # when on master
> > 
> > BTW. it is stated countless time in documentation that published
> > history should be not rebased, barring some extenuating circumstances
> 
> Yes and people countless times ignore that recommendation and do 
> it anyways (for good reasons).  And then other users 
> have to deal with these rebased trees somehow.
> 
> Anyways it is all solvable but right now ill supported
> in standard commands and the documentation does not really
> cover it. I was just asking (mostly for others to avoid
> going through the same pain as me) for that to be improved
> so that git becomes easier to use.
> 
> Sadly you guys don't even seem to want to recognize there
> is a problem  
Why are you saying so?

You now understand that your script: git fetch origin git fetch --tags origin git remote update git checkout master git reset --hard origin/master

it's far from being perfect, right?

git remote update is going to update all the remotes so you don't need the two git fetch command.

Furthermore, I just tried what was suggested in this thread:
paolo@paolo-desktop:~/linux.trees.git$ git pull --rebase
remote: Counting objects: 7867, done.
remote: Compressing objects: 100% (1868/1868), done.
remote: Total 5125 (delta 4373), reused 3839 (delta 3246)
Receiving objects: 100% (5125/5125), 870.73 KiB | 187 KiB/s, done.
Resolving deltas: 100% (4373/4373), completed with 942 local objects.
From git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
 + dff643a...f8fcb0d auto-core-next -> tip/auto-core-next  (forced update)
   b635ace..6a55617  auto-core-next-base -> tip/auto-core-next-base
   b635ace..6a55617  auto-cpus4096-next -> tip/auto-cpus4096-next
   b635ace..6a55617  auto-cpus4096-next-base -> tip/auto-cpus4096-next-base
 + 1f1fccc...696f6d1 auto-fastboot-next -> tip/auto-fastboot-next  (forced update)
   b635ace..6a55617  auto-fastboot-next-base -> tip/auto-fastboot-next-base
 + cdca408...06d0224 auto-ftrace-next -> tip/auto-ftrace-next  (forced update)
   b635ace..6a55617  auto-ftrace-next-base -> tip/auto-ftrace-next-base
   b635ace..6a55617  auto-generic-ipi-next -> tip/auto-generic-ipi-next
[...]
A nice single command that seems to achive your needs.
Ciao,
             Paolo
Previous: Andi KleenNext: Jakub Narebski
Message 31 of 42 in “nicer frontend to get rebased tree?”
  1. Andi KleenAug 22, 2008
  2. Linus TorvaldsAug 22, 2008
  3. Andi KleenAug 22, 2008
  4. Linus TorvaldsAug 22, 2008
  5. Paolo CiarrocchiAug 22, 2008
  6. Linus TorvaldsAug 22, 2008
  7. Björn SteinbrinkAug 22, 2008
  8. Paolo CiarrocchiAug 22, 2008
  9. Linus TorvaldsAug 22, 2008
  10. Junio C HamanoAug 22, 2008
  11. Andi KleenAug 23, 2008
  12. Paolo BonziniAug 23, 2008
  13. Andi KleenAug 23, 2008
  14. Paolo BonziniAug 23, 2008
  15. Linus TorvaldsAug 23, 2008
  16. Andi KleenAug 23, 2008
  17. Linus TorvaldsAug 23, 2008
  18. Ingo MolnarAug 25, 2008
  19. Björn SteinbrinkAug 23, 2008
  20. Linus TorvaldsAug 23, 2008
  21. Björn SteinbrinkAug 23, 2008
  22. Documentating branches (was: nicer frontend to get rebased tree?)Marius Vollmer, Aug 23, 2008
  23. Miklos VajnaAug 23, 2008
  24. Marius VollmerAug 23, 2008
  25. Marius VollmerAug 23, 2008
  26. Avery PennarunAug 22, 2008
  27. Andi KleenAug 22, 2008
  28. Paolo CiarrocchiAug 22, 2008
  29. Jakub NarebskiAug 22, 2008
  30. Andi KleenAug 23, 2008
  31. Paolo CiarrocchiAug 23, 2008
  32. Jakub NarebskiAug 23, 2008
  33. Andi KleenAug 23, 2008
  34. Paolo CiarrocchiAug 23, 2008
  35. Linus TorvaldsAug 23, 2008
  36. Paolo CiarrocchiAug 23, 2008
  37. Björn SteinbrinkAug 23, 2008
  38. Junio C HamanoAug 24, 2008
  39. Jakub NarebskiAug 23, 2008
  40. Theodore TsoAug 23, 2008
  41. A proposed solution (Was: nicer frontend to get rebased tree?)Theodore Tso, Aug 23, 2008
  42. Mikael MagnussonAug 22, 2008

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.