I have two branches master and develop. Each branch contains a same file named "db.config" having a separate db credentials for production(master) and staging(develop).
Master branch also have .gitattributes file in which i defined a merge=ours strategy for db.config
.gitattributes
db.config merge=ours
When i merge develop into master branch by creating a pull request in bitbucket then changes in develop branch also goes to master after merge for db.config. It looks like .gitattributes file doesnot work for me.
Also stackoverflow same issue doesnot works for me. Does anyone know how i get rid out of this?