Skip to content

Instantly share code, notes, and snippets.

@rollxx
Created February 22, 2012 10:29
Show Gist options
  • Save rollxx/1884069 to your computer and use it in GitHub Desktop.
Save rollxx/1884069 to your computer and use it in GitHub Desktop.
git cherry pick
$ git checkout target-branch
$ git cherry-pick 011210939923d812421d037fbb89168495e9b254
if something goes wrong -- revert changes:
$ git reset --merge
011210939923d812421d037fbb89168495e9b254 = commit from other branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment