What I Want
I working in windows and my project is asp.net mvc
I have two branches .Test and Master.
In both branches, i have config.cs
Each branch has its own config.cs with different data.
I want the config.cs files, Do not include in the merge.
my directory
-.git
-.vs
-MyProject
--config.cs
-.gitattributes.txt
my try
I found this link:
git-scm.com
Who says to use the .gitattributes.txt
I write this line into .gitattributes.txt
config.cs merge=ours
and run this line:
git config --global merge.ours.driver true
But not work.
When I merge the Test branch into the Master branch, config.cs of Test, overrides on config.cs of Master.