When performing a git merge
with the following options:
git merge -X theirs master
There are occasionally conflicted files like so:
CONFLICT (modify/delete): File_A.java deleted in master and modified in HEAD. Version HEAD of File_A.java left in tree.
However, I would like for the -X theirs
option to be recognized in these cases, and use the theirs
version of the change, which is for the file to be deleted.
Is there a reason this type of conflict is not automatically resolved, especially since I'm providing a specific merge strategy that suggests it should remove the file?
Further, how (if possible) can I update my merge
command to use the theirs
version of this type of conflict?