Say project is the name of the branch to be merged, and README.md is the name of the file that stores industry-specific information.
I would suggest the following steps:
Merge the project branch, but make sure that the changes are not executed, not redirected
$ git merge --no-commit --no-ff project
Disable the README.md file and check its current version of the branch
$ git checkout HEAD -- README.md
Full merger
$ git commit
In addition, it makes sense to install a merge driver that will support a branch-specific version of the file in the event of a merge conflict. In this case, you do not have to manually resolve conflicts in separate files.
Such a merge driver is usually called ours and is defined as:
$ git config --global merge.ours.driver true
Now you can specify in the .gitattributes file when this merge should be used.
In our case, we need to add the following rule to .gitattributes and fix it:
README.md merge=ours
source share