Let's suppose that we have two branches: master
and feature_branch
.
Is there a possibility to check if each commit to the feature_branch
was cherry-picked into master
?
Let's suppose that we have two branches: master
and feature_branch
.
Is there a possibility to check if each commit to the feature_branch
was cherry-picked into master
?
You can use git-log
together with the --cherry-pick
and --right-only
options for that:
git log --cherry-pick --right-only master...feature_branch
This will return the commits in feature_branch
that do not have an equivalent1 commit in master
.
From the documentation:
--cherry-pick --right-only A...B
omits those commits fromB
which are inA
or are patch-equivalent to a commit inA
. In other words, this lists the+
commits fromgit cherry A B
.
If there's no output, it means that all the commits in feature_branch
have been cherry-picked into master
.