From: Ævar Arnfjörð Bjarmason Date: Tue, 13 Jul 2010 22:05:17 GMT Subject: Re: Merging branches Message-ID: In-Reply-To: <1279056529462-5289861.post@n2.nabble.com> On Tue, Jul 13, 2010 at 21:28, jhapk wrote: > I have a git history which looks something like as in the figure above. I > want to merge Branch A in Branch B. However, the commits a1, a2 and a3 are > ugly and so I don't want those commits in my Branch B log. Is there anyway > that I can only pull the final form of Branch A without pulling the whole > history of Branch A? Yes, you use rebase to squash or drop those commits, and then merge the branch.