Hi there,
I saw the post "How do I tell git to always select my local version for conflicted merges on a specific file?", which says if you have conflict on a folder, we need to add .gitattributes
to that folder and then add a merge driver to config file to say always keep my branch's content for this folder.
And this works perfectly fine.
But what if I end with up conflicts on several folders/files and want to keep my version for these. It doesn't make sense to create .gitattributes
file in every folder that has conflicts.
So is there a way to do this - like if am merging Branch-A
to Branch-B
and end up with so many conflicts, I need a way by which I can keep Branch-B
contents for all the conflicts.
Any help is appreciated.