Skip to content

Instantly share code, notes, and snippets.

@nissshh
Created February 9, 2018 09:33
Show Gist options
  • Save nissshh/7ed0d8e34e7e047152100e63f099ebda to your computer and use it in GitHub Desktop.
Save nissshh/7ed0d8e34e7e047152100e63f099ebda to your computer and use it in GitHub Desktop.
Cherry Pick
A very important command that i learnt was a git cherry-pick , that is usefulll in cases wher you want to move only a perticular commit from other branch
to your branch. In regular cases if you merge 2 branches all teh changes (from head) are merged to target.
e.g. git cherry-pick -n <commit>
-n option is important , as the command keeps the changes in your working files, if not given checkes in the change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment