git cherry-pick yana amfani da musamman commit daga reshe ɗaya zuwa wani — zai kwafi kawai canjin na wannan commit, ba tare da haɗa reshe duka ba. Yana da amfani don amfani da musamman canje, kamar sauƙaƙƙar laifi.
Yadda cherry-pick ke aiki
# apply a specific commit from another branch onto the current branch
git cherry-pick <commit-hash>
# → creates a NEW commit on the current branch with that commit's changes
git cherry-pick <commit1> <commit2>
git cherry-pick A..B
