Cherrypicking - Anjum219/Git-basics GitHub Wiki

With git cherry-pick, you can add a commit from branch1 to branch2. Let's say we have a master branch and a side branch. If we want to add commit x from side to master-

git checkout master
git cherry-pick <commit-x-hash>

Now commit x will be the latest commit in master. Without rebasing or merging, cherry-pick enables us to add a single commit.