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

How to prevent certain files from being automerged?

Martin Belley-Charbonneau 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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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