Git: How to list cherry-picked commits?

6.5k views Asked by At

How to list commits that were cherry-picked in Git? Let's suppose the following scenario: cp = cherry-pick commit

                         cp1         cp2          
master -----o------o------o-----o----o
            \            /          /
     branch1 \----o------o-----o---o---o

Is there a log command to list cherry-pick commits cp1 and cp2 ?

Thanks.

2

There are 2 answers

4
Jordan Samuels On
git reflog

will show cherry-pick events.

1
Michael On
git cherry -v branch1 master

See git-cherry for documentation.