Git: How do I know if a commit is selected?

Is there a way to determine if fixation is the selected cherry and what origin captures the changes that are selected from the cherry?

'git cherry-pick -x' is a solution for recording information when I make a cherry pick. But if we did not use the "-x" option, any other solutions?

+7
git
source share
1 answer

Git provides

git cherry

git log --cherry

both of which at a low level use git patch-id to determine when it considers the changes to be selected by cherry. These commands will almost never have false positives, but they can have false negatives.

+7
source share

All Articles