From: Avery Pennarun Date: Wed, 14 Jul 2010 05:24:52 GMT Subject: Re: Merging branches Message-ID: In-Reply-To: On Tue, Jul 13, 2010 at 6:05 PM, Ævar Arnfjörð Bjarmason wrote: > 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. Or just "git merge --squash". Have fun, Avery