- Find the first and last commit in the range you want to
cherry-pickin.- You can use this
https://github.com/my-org/my-repo/compare/xyz1234^..abc1234to compare the changes between two commits in GitHub
- You can use this
- Start the
git cherry-pick:- To cherry-pick a range of commits (more common):
git cherry-pick "xyz1234^..abc1234" - The
^is important otherwise you will not be including the first commit - but the commit might get picked up in the maintainer's merge commit for the release anyways - and the quotes are necessary around the commits inzshb/c of the^ - To cherry-pick a single commit (probably not as common):
git cherry-pick abc1234
- To cherry-pick a range of commits (more common):
- Review merge conflicts - use a combination of
git cherry-pick --skip(for when readme/starter posts are updated) andcherry-pick --continue(to continue after you resolve real merge conflicts)
- Ensure other repository is set as a remote:
git remote add other-repository https://github.com/my-org/my-repo.git - Ensure you have the latest upstream commit:
git fetch other-repository - Find the first and last commit in the range you want to
cherry-pickin.- You can use this
https://github.com/my-org/my-repo/compare/xyz1234^..abc1234to compare the changes between two commits in GitHub
- You can use this
- Start the
git cherry-pick:- To cherry-pick a range of commits (more common):
git cherry-pick "xyz1234^..abc1234" -m 1 - The
^is important otherwise you will not be including the first commit - but the commit might get picked up in the maintainer's merge commit for the release anyways - and the quotes are necessary around the commits inzshb/c of the^ - To cherry-pick a single commit (probably not as common):
git cherry-pick abc1234 -m 1
- To cherry-pick a range of commits (more common):
- Review merge conflicts - use a combination of
git cherry-pick --skip(for when readme/starter posts are updated) andcherry-pick --continue(to continue after you resolve real merge conflicts)