Ubuntu - GIT - git cherry-pick

Specify which commits you want to apply to your current HEAD.

You have to know which commit hashes you want.

For example, if you have 3 commits above the master branch, you could apply just the last commit by running

git cherry-pick [hash of 3rd commit]

This way, only the 3rd commit gets applied to the master.