You can use
git cherry-pick <commit id>
to pick specific commits
To close the cycle and make a PR from master.
We can do the following steps:
Assume being on the master
branch:
git checkout -b myNewBranch // this will create a new branch named myNewBranch
git cherry-pick <commitID 1> // this will take the commit with the commit ID 1 and
// attempt to place it on top of the master branch.
// Note however, there might be conflicts to resolve
git cherry-pick <commitID 2> // this will take the commit with the commit ID 2 and place on top of the master branch
git push origin/<some branch name> // will push the changes to remote. Usually origin/<local branch name>
Then you can make a pull request depending on your platform.
So it can be from the GUI. Be it on a GitHub platform or DevAzure, etc.
In your case via BitBucket GUI.
Side note: the steps above are made for simplicity. It is also possible to make the cherry-pick with one line. Like so:
git cherry-pick <commitID 1> <commitID 2>
git checkout dev
,git cherry-pick <id 1>
,git cherry-pick <id 2>
. How to create PR for those cherry-pick for master branch? – Kathrynkathryne