I have develop and master branch. The develop branch should have different values of CODEOWNERS file from master branch. For example:
develop branch should have:
* @user1 @user2 @user3 @user4 @user5
master branch should have:
* @user1 @user2
I'm trying to ignore the changes of CODEOWNERS in develop branch from pull request/merging from GitHub Website. I added .gitattributes and added:
CODEOWNERS linguist-generated
CODEOWNERS -diff
CODEOWNERS merge=binary
CODEOWNERS merge=ours
But when trying to pull request from GitHub website(develop to master), the CODEOWNERS still showing that it has modified changes.
I'm not sure if this gonna work but I tried to add git config --global merge.ours.drivers true
in my local machine. Still no luck. Should I add this config to the server where git is installed? What should I do to enable the custom driver. Thank you.