Git cherry-pick

From NovaOrdis Knowledge Base
Revision as of 17:55, 18 October 2019 by Ovidiu (talk | contribs) (Created page with "=Internal= * Git Commands =Overview= Cherry-pick takes one or more existing commits and applies the changes introduced by tho...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to 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>