Git branches compare after git cherry pick

Answered

Hi,

 

I compared two branches and cherry picked some commits from one into the other. After successfully cherry picking, the "compare branches" command does not recognize the cherry picked commits, so both branches have the commits listed in the comparison graph, although the commits exist now in both branches.

Why is that and is this by intend?

1
1 comment

Hello Tabaloa

From git point of view cherry-picked commit are different commits since they have different hash, therefore they are listed in the git log of both branches
You can highlight non-cherry picked commits by configuring it in IDE as per screenshot:

0

Please sign in to leave a comment.