I just tried using .gitattributes for the first time. I believe that I should do something wrong, because it does not work, because I thought that the purpose of using the merge=ours attribute is for (?).
An example of my use:
I have two branches; one is the master, and the other is the GCE site. There are files in the "GCE-Site" branch that have different settings, which also exist in the "master" branch, which I do not want to merge with "master" [or other branches].
In both branches I have a .gitattributes containing the following rules:
README.md merge=ours config.php merge=ours .gitattributes merge=ours .gitignore merge=ours .cache/ merge=ours
All files requiring rules are at the root level plus everything above the .cache / folder. When I do git merge GCE-Site , all files are merged into master anyway when I don't want it.
Is there something I am missing? Your help is greatly appreciated. Thnx
git merge bitbucket attributes
Celticparser
source share