Git - cherry picking

Table of Contents

Moving Work Around in Git.

git cherry-pick will plop down a commit from anywhere in the tree onto HEAD (as long as that commit isn’t an ancestor of HEAD).

git cherry-pick <Commit1> <Commit2> <...>

It’s a very straightforward way of saying that you would like to copy a series of commits below your current location (HEAD).

This would result in: