Last Updated: February 25, 2016
·
460
· johnantoni

Cherry-picking Commits from other branches

First make sure your in the branch you want to place the commit,

git co master

Next tell git to cherry pick a specific commit and add it on top of your current branch (you don't have to specify which branch the target commit is in, just the unique id)

git cherry-pick [commit-hash]

If successful the commit will be placed at the top of your current branch.

more