Let's say,
- We made commit #100 to master.
- We want to make commit #101 in a branch go to master
- However, since there is potentially some issue with commit #100, so we want to go to commit #99 and then cherry-pick #101 and make a PR
- But we found the PR (Pull Request) does not contain the "reverse" of commit #100.
How can it be made to happen?
The exact steps we did:
git checkout 3f6231 # the commit ID for commit #99
git checkout -b some_new_branch
git cherry-pick 523c62 # the commit ID for commit #101
git push --set-upstream origin some_new_branch
and created a PR. So now, we expect in the PR to have the changes of commit #101, but reversed the commit #100 (because we didn't cherry-pick it). However, we saw the PR only contain the changes for commit #101, without the reverse of #100. If we merge it into master, then as expected, we still see the commit #100 changes. How do we omit commit #100? (or in real life it could be a series of them, such as #100a, #100b, #100c, and we'd like to skip them all and go to #101 directly).