Merge of the pull request is overwriting the changes which were committed from previous pull request

chandre gowda
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 5, 2018

I have an issue observed multiple times in my project.  whenever we merge the pull request from one branch into master , the changes from previous pull request merge got overwritten even though overwritten files had no changes in latest pull request. 

Steps to reproduce.

1.  Created branch from master , then committed changes and created a pull request A. This has 2 file changes f1, f2.  

2.  Created another branch from master , then committed changes and created a pull request B. This has 2 file changes f3, f4.  

3.  Merged pull request A.

4. Merged pull request B. This overwrites files changes from pull request A. Now the master contains only f3 and f4. f1 an df2 are missing.

This  happens only for certain commits and not for all. Is there any setting that  needs to be done so that we can avoid overwriting of file changes. 

 

 

2 answers

1 vote
Dirk Köchner
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 12, 2024

We have the exact same issue and would greatly appreciate an answer!  Each PR (regardless of files) is overwritting previous PR files.  Its extremely frustrating and is making our org unstable.  Please advise how we could vote on this issue.  Thank you!

kthallapalli
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 8, 2024

We've encountered an issue when pulling from branch B. Occasionally, the pull seems to overwrite new files already committed to our current branch (branch A). This only happens with a specific set of commits.

We've been using this approach for a while without problems, so we're unsure if recent changes to Bitbucket might be causing this behavior.

1 vote
Aman_Jain_lamresearch_com
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 11, 2022

Same issue. Can someone from Atlassian please provide any answers.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events