Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save yavuztas/19249915e1a421327f41c0c2a5a4320b to your computer and use it in GitHub Desktop.
Save yavuztas/19249915e1a421327f41c0c2a5a4320b to your computer and use it in GitHub Desktop.
git cherry-pick some commits from another branch
# if you want to pick some commits from <some-branch> to master for example,
# switch to master
git checkout master
# pick the commits you want to apply to master
git cherry-pick a52afa1
git cherry-pick 08f39f7
# if there is a conflict, resolve and commit
# if not it will be automatically committed, you can push
git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment