Re: Merging branches
- From
Avery Pennarun <apenwarr@gmail.com>
- Date
- Jul 14, 2010, 05:24 UTC
- Message-ID
- <AANLkTimFGQg1KEqpVBvifrLR8_BH_p6s6qswn614s58q@mail.gmail.com>
- In-Reply-To
- <AANLkTikPdOVCs5aB7Gs5QCFGDIgBm00DO5XPkP39mzIW@mail.gmail.com>
On Tue, Jul 13, 2010 at 6:05 PM, Ævar Arnfjörð Bjarmason <avarab@gmail.com> wrote:
Show 8 quoted lines
> On Tue, Jul 13, 2010 at 21:28, jhapk <pradeep.kumar.jha@gmail.com> 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