I have few files which I would like to "invalidate" in my dev_branch lets call it branch "A" so once merging with another dev_branch lets call it branch "B" I get a merge conflict. Those few files I mention have been previously edited in that other dev_branch called B.
Here is what I tried so far:
I removed the files from index cache of my branch "A" and added them back again.
git checkout -b feature/A origin/feature/A
git -rm -r --cached "myFolder"
git commit -am "removed the files"
cd "myFolder"
git add .
git commit -am "added back the files"
So far the branch A is two commits away from master and branch B just one with edited files and now I tried to merge but still not getting the merge conflict
git merge origin/feature/B
why cant I cause merge conflict? both have commits not in master branch how do I force a merge conflict without individually changing each files content?