Git · Senior · Question 20 of 76
How does git cherry or patch-id detection help after cherry-picking?
- 1It removes duplicate commits from the reflog
- 2It picks the best commits for a release automatically
- ✓Correct answer: It finds commits whose changes already exist upstream
Explanation
Cherry-picked commits have different hashes but the same patch. Rebase also uses patch-ids to skip commits that are already upstream.