git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git pull --rebase differs in behavior from git fetch + git rebase
@ 2010-08-27  2:59 Joshua Jensen
  2010-08-27  7:23 ` Santi Béjar
  2010-08-27  8:27 ` Dave Olszewski
  0 siblings, 2 replies; 10+ messages in thread
From: Joshua Jensen @ 2010-08-27  2:59 UTC (permalink / raw)
  To: git@vger.kernel.org

  I have a case where 'git pull --rebase' does not do the Right Thing 
(according to me).

If I run 'git rebase origin/master', that rebase does the right thing, 
perfectly reapplying my *single* commit on top of the upstream.

'git pull --rebase' ends up reapplying a bunch of much earlier commits 
and ends up with a conflict.

The documentation for git pull --rebase states: "Instead of a merge, 
perform a rebase after fetching. If there is a remote ref for the 
upstream branch, and this branch was rebased since last fetched, the 
rebase uses that information to avoid rebasing non-local changes."  I do 
not understand

I'm studying the git-pull script right now, but I have to admit this is 
beyond me.  I'm sure if I stare hard enough, I'll get it.

I mistakenly have assumed 'git pull' = 'git fetch; git merge' and that 
'git pull --rebase' = 'git fetch; git rebase'.  Does anyone want to 
clarify what is really going on?  Unfortunately, I can't publish the 
repository in question.

Thanks!

Josh

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2010-08-28  3:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-27  2:59 git pull --rebase differs in behavior from git fetch + git rebase Joshua Jensen
2010-08-27  7:23 ` Santi Béjar
2010-08-27  8:27 ` Dave Olszewski
2010-08-27 15:48   ` Joshua Jensen
2010-08-27 18:46     ` Elijah Newren
2010-08-27 22:29       ` Joshua Jensen
2010-08-27 23:40         ` Elijah Newren
2010-08-28  2:06           ` Joshua Jensen
2010-08-28  2:40             ` Elijah Newren
2010-08-28  3:13               ` Joshua Jensen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).