cherry-pick

Copying the change made by one existing commit onto the current branch as a new commit.

In more detail

git cherry-pick 2b3c4d5 applies that commit's diff here and records it with the same message and author but a new ID. It takes only that one commit, not the history before it, which suits moving a single fix between branches. It works best when the commit holds one idea.

Example

git cherry-pick 2b3c4d5

Related terms

Taught in

References