Git cherry-pick

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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>