Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

how to cherry pick commit id in bitbucket for pull request

naresh2389 April 6, 2021

HI All,

 

I have DEV,SIT,UAT branches and now want to move specific story from DEV to SIT i.e specific commit to SIT using pull request or cherry pick option in front end?

 

Now pull request is taking full difference code from source branch.

2 answers

1 accepted

5 votes
Answer accepted
Tyler T
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 6, 2021

Cherry picking is not supported in the UI but it is easy to accomplish on the command line or using a tool like SourceTree.

You could do something roughly like this:

git checkout DEV
git log

# copy the commit hash

git checkout SIT
git cherry-pick <commit_hash_from_DEV>

# now that commit from DEV is in SIT (assuming there are no conflicts)

Here is some additional documentation: https://www.atlassian.com/git/tutorials/cherry-pick

0 votes
naresh2389 April 7, 2021

Tyler T - Is there any way to create pull request with specific commits rather than full changes

Tyler T
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 7, 2021

Certainly. In that case you'd want to create a feature branch off the main branch and cherry-pick the commits you'd like (using the command line or SourceTree). Then open a pull request against the main branch. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events