Comments on: When is git rebase better than git merge? http://v1.ripper234.com/p/when-is-git-rebase-better-than-git-merge/ Stuff Ron Gross Finds Interesting Sun, 02 Aug 2015 11:03:35 +0000 hourly 1 https://wordpress.org/?v=4.5.3 By: ripper234 http://v1.ripper234.com/p/when-is-git-rebase-better-than-git-merge/comment-page-1/#comment-4090 Wed, 17 Aug 2011 04:51:33 +0000 http://v1.ripper234.com/?p=1527#comment-4090 @wcoenen – my example is in fact about merging master into a private branch. You can’t do that incrementally – just think about it.

(Perhaps what got you confused is my off topic tale of telling people not to commit to trunk – it’s not really relevant since I’m merging/rebasing the work trunk to my branch).

I admit I don’t have much experience in working in a pure git environment yet, but I think that rebasing is often a better way to go than merging in this context. The easiest way to deal with the fact people develop on master while you’re working on a private branch is to play “what if I had only started my work today, after all new commits went into master” – this is what rebase does.

]]>
By: wcoenen http://v1.ripper234.com/p/when-is-git-rebase-better-than-git-merge/comment-page-1/#comment-4088 Tue, 16 Aug 2011 21:22:41 +0000 http://v1.ripper234.com/?p=1527#comment-4088 Uh? If I understand correctly, you can do exactly the same thing with merges. You can take the first commit of your private branch, merge it with master, resolve conflicts, compile, test, merge the second commit, etcetera.
It seems to me that rebase is just a slightly improved “svn update”. If you are going the DVCS route, it’s better to just embrace merging.

]]>
By: Ken Egozi http://v1.ripper234.com/p/when-is-git-rebase-better-than-git-merge/comment-page-1/#comment-3783 Tue, 14 Jun 2011 21:28:21 +0000 http://v1.ripper234.com/?p=1527#comment-3783 +1

]]>