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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Pull requests contains all commits for a branch



we are using Bit bucket cloud where repository ABC is subdivided into multiple Folders Say folder 1 and Folder 2  and Branch X and Y is created.


When we create a pull request from folder1 in Branch X  to push to Branch Y  with same folder 1.  Pull request basically contains commits for other Users who is working on folder2 which we do not want to merge or commit. Please suggest how to selectively push Folder1 change to Branch Y and ignore other folder 2 related commit from pull requests coming along to it.


Thanks and Regards


1 answer

1 accepted

0 votes
Answer accepted
Mikael Sandberg Community Leader Sep 01, 2020

That is expected behavior, Git do not differentiate between commits make to a specific path, it will merge all commits made on a specific branch to another. If you do not want to break out each folder as its own repository you could use Git cherry-pick to merge specific commits, but then you will loose the pull request process part in Bitbucket.

I would recommend that you take a look at maybe using Git subtree, that allows you to have folder A, B etc as separate repositories that you can then bring into your main repository. 

Hi  Mikael,


Thank you very much. I think Git Cherry pick would work for me If as a reviewer I can selectively approve the commit and merge it  in Bit bucket ( similar to cherry pick using Source tree). Cant we still tell developer to create pull request and as a reviewer I can cherry pick and merge specific commit which is relevant for approver. Please suggest if that is possible. Which privilege I should have to do it in Bit bucket.


Thanks and Regards


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,741 views 10 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you