Created
June 8, 2015 21:02
-
-
Save AurelioDeRosa/c1dd77a3619729e1518f to your computer and use it in GitHub Desktop.
Git commands to cherry pick commits
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
git checkout -b otherrepo-master master | |
git pull https://github.com/otherrepo/my-repo-name.git master | |
git checkout master | |
git cherry-pick --strategy=recursive -X theirs <commit-hash> | |
git log | |
git branch -D otherrepo-master | |
git push origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment