From: Peter Baumann Date: Wed, 14 Jan 2009 19:40:42 GMT Subject: Re: git merge and cherry-pick and duplicated commits? Message-ID: <20090114194042.GB15129@m62s10.vlinux.de> In-Reply-To: <2729632a0901141033p47b4d8dah46f5bac27307d306@mail.gmail.com> On Wed, Jan 14, 2009 at 10:33:02AM -0800, skillzero@gmail.com wrote: > On Wed, Jan 14, 2009 at 12:34 AM, Johannes Sixt > wrote: > [ ... ] > Related to this, is there a way to easily find the common merge base > given a bunch of a branches? When I want to fix a bug, I want to say > "Given branches A, B, C, D, and E, where should I fork my bug fix > branch from so that I can merge this branch into all those branches > without getting duplicate commits?". You should have a look at 'git help merge-base' -Peter