# Comparing commits on two different branches

2 messages from 2012-03-05 to 2012-03-05. Participants: Howard Miller, Junio C Hamano.
Thread: https://gitlist.dev/t/29842

## Howard Miller, 2012-03-05 16:18

Subject: Comparing commits on two different branches
Message-ID: <CAHVO_92V3rRBngrZMLeq17ekKKB41kTmok39uUeZ6aOzxB65dQ@mail.gmail.com>
URL: https://gitlist.dev/e/CAHVO_92V3rRBngrZMLeq17ekKKB41kTmok39uUeZ6aOzxB65dQ%40mail.gmail.com

```
Hi,

I have two branches - I know that one differs from the other entirely
by a (large) number of commits that I have made over some time.
Unfortunately, these are now all mixed up with a load of other commits
that have been merged into both from the upstream project.

Is there any way that I can get the list of commits that represent the
difference between the two branches? Even better is there some way
that I can apply all those commits to a third branch (a newer version
of the project) without having to do hundreds of cherry-picks?

Thanks!

```

## Junio C Hamano, 2012-03-05 17:38

Subject: Re: Comparing commits on two different branches
Message-ID: <7vr4x70wz3.fsf@alter.siamese.dyndns.org>
URL: https://gitlist.dev/e/7vr4x70wz3.fsf%40alter.siamese.dyndns.org
In-Reply-To: <CAHVO_92V3rRBngrZMLeq17ekKKB41kTmok39uUeZ6aOzxB65dQ@mail.gmail.com>

```
Howard Miller <howard@e-learndesign.co.uk> writes:

> I have two branches - I know that one differs from the other entirely
> by a (large) number of commits that I have made over some time.
> Unfortunately, these are now all mixed up with a load of other commits
> that have been merged into both from the upstream project.

"now all mixed up" makes me feel a lot less optimistic, but have you
tried git-cherry?

```
