Difference between revisions of "Git"

From DarkWiki
Jump to: navigation, search
 
Line 4: Line 4:
  
 
  git cherry-pick 1237645187234781fqcfewfe
 
  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

Latest revision as of 07:52, 9 May 2018

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