Here you can perform the cherry pick step by step
Pick only specific commit(s) and raise PR for only those changes:
Step 1: Select those commit hash (Click on commit id and get the complete hash):
https://bitbucket.org/project-name/repo-name/commits/52597fbcc7010e3d4e1ccbdeb5b325331bd3c26752597fbcc7010e3d4e1ccbdeb5b325331bd3c26 In the above URL, commit hash is: 52597fbcc7010e3d4e1ccbdeb5b325331bd3c26752597fbcc7010e3d4e1ccbdeb5b325331bd3c26
Step 2: Collect all commit hash that need to have in PR, Suppose, I need 3 commits and its code to have in master and I need raise the PR:
https://bitbucket.org/project-name/repo-name/commits/52597fbcc7010e3d4e1ccbdeb5b32552597fbcc7010e3d4e1ccbdeb5b32 https://bitbucket.org/project-name/repo-name/commits/ed0e2169ca0f2c69687999977773cc1009381859ed0e2169ca0f2c69687999977773cc100938185 https://bitbucket.org/project-name/repo-name/commits/5e770f730bacb9ee6e4804b5e66df90b64931393 5e770f730bacb9ee6e4804b5e66df90b6493139 Step 3: Go to the Repo and run following commands:
git stash git checkout master git pull origin master git checkout -b "my-new-branch" git cherry-pick 52597fbcc7010e3d4e1ccbdeb5b325331bd3c26752597fbcc7010e3d4e1ccbdeb5b325331bd3c26 git cherry-pick ed0e2169ca0f2c69687999977773cc1009381859ed0e2169ca0f2c69687999977773cc100938185 git cherry-pick 5e770f730bacb9ee6e4804b5e66df90b649313935e770f730bacb9ee6e4804b5e66df90b6493139 git push origin my-new-branch Step 4: Raise the PR against master