On Wed, 11 May 2011, Curtis Olson wrote:

> Let me ask a dumb question then.  I do a similar procedure to Thorsten,
> except in my local branch I do a "git merge master" instead of a rebase.
> Can someone explain the nuances of merge verses rebase?

Each rebase moves your local commits to be on-top of all upstream commits.

For example, my local SimGear branch currently looks like this:
git log output:

commit 4087b34f7ebbdb54b62afb205dc2e1ca225dc68b
Author: Anders Gidenstam <and...@gidenstam.org>
Date:   Tue Mar 29 22:44:53 2011 +0200

     Experimental Nasal GC work: Added a GC thread.

commit d94d1a907d6ec001ab9ba497bc03aaeff55f923c
Author: Anders Gidenstam <and...@gidenstam.org>
Date:   Sun Oct 3 16:59:50 2010 +0200

     Turn the creation of a variable without the var keyword an error in 
Nasal.

commit c7c3fae5c2cd21cf81e7a94911568adba926f680
Author: ThorstenB <bre...@gmail.com>
Date:   Sat May 7 19:40:01 2011 +0200

     Also remove visual_enviro.cxx from the VC90 build.

That is my two local commits appear as later than any upstream commit, 
although they are "older" (as seen by their dates).

This is the effect of the rebase. If I had merged my branch with the 
upstream branch instead of rebasing it on top of the upstream branch my 
commits would have been somwhere way down in the history.

However, note that each rebase creates new commits since the commit ID is
a consequence of the history preceding the commit. The old "copies" of my 
commits from previous rebases are no longer part of my local branch.


Cheers,

Anders
-- 
---------------------------------------------------------------------------
Anders Gidenstam
WWW: http://www.gidenstam.org/FlightGear/

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to