Git cherry-pick: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * Git Commands =Overview= Cherry-pick takes one or more existing commits and applies the changes introduced by tho...")
 
(No difference)

Latest revision as of 17:55, 18 October 2019

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>