Git cherry-pick

From NovaOrdis Knowledge Base
Jump to: navigation, search

Internal

Overview

Cherry-pick takes one or more existing commits and applies the changes introduced by those on the current branch.

Procedure

Identify the commit you want to apply.

Check out the branch you want to apply to.

git checkout <target-branch>
git cherry-pick <commit-id>