Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to prevent certain files from being automerged?

Martin Belley-Charbonneau
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 5, 2020

Automatic Merge Conflict are causing us a bit of trouble. We have files containing per-branch information that must stay different between releases branch and master. On each merge, Bitbucket try to merge the version file and fails, causing an automatic merge conflict.

We tried:

  • Putting the file in .gitignore
  •  .gitattributes merge=ours

But Bitbucket doesn't seem to take them into account. Before developing a Plugin, is there a way to prevent this?

1 answer

0 votes
Gonchik Tsymzhitov
Community Champion
January 8, 2021

I did no find, only custom solution

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events