Git

From DarkWiki
Revision as of 07:52, 9 May 2018 by Apowney (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Cherry picking

If you need to merge in a single commit into your current branch, you can make use of git cherry-pick. For example, if you wish to merge in commit "1237645187234781fqcfewfe", you need only issue the following command:

git cherry-pick 1237645187234781fqcfewfe

If you are needing to merge in a commit from a remote branch, you will need to ensure you've fetched the tags.

git fetch