Created
October 13, 2019 10:52
-
-
Save yavuztas/19249915e1a421327f41c0c2a5a4320b to your computer and use it in GitHub Desktop.
git cherry-pick some commits from another branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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