Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio - unable to Create cherry Pick from grey commit in the graph

In Visual Studio, I can pull latest from my source branch.

From the history graph, I can see all the commits.

From the "train track" graph, the nodes are colored, most are blue circles, but I have a few that are gray.

If I right-click on an entry that is blue, I can select the option to perform a cherry pick, but not when it's gray.

Why is this - what does "gray" signify?

like image 235
DrGriff Avatar asked Jan 20 '26 21:01

DrGriff


1 Answers

Git graph experience:

  • The blue dots represent any commit in the repo or a file
  • The grey dots represent a merge commit.
  • A line connects a commit to its ancestor commit. In case a commit does not show its parent within the next 50 commits, you will see an arrow that once clicked will connect the commit to its parent commit.

From the git-cherry-pick doc:

Usually you cannot cherry-pick a merge because you do not know which side of the merge should be considered the mainline. This option specifies the parent number (starting from 1) of the mainline and allows cherry-pick to replay the change relative to the specified parent.

You can also refer to this ticket for more info.

like image 74
Hugh Lin Avatar answered Jan 23 '26 13:01

Hugh Lin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!