Git merge conflict problem

two branches checked out from master
A branch deleted the FileA,B branch on January 1st and put FileA into A/FileA
on January 2nd. After merging (B merge master, and then merge master), A/FileA still exists
. Is there any way to avoid or find out

in time when merging?
Git
Mar.02,2021

shows all the different files in the two branches
git diff A B-- stat


I seem to have made a mistake
this situation will conflict when merging. If you look at it with a tool, the conflicting file looks like a new file. I didn't notice it at that time, so I just added that file to temporary storage, so I finally saw that "the deleted file still exists"

.
Menu