I have two branches that I try to merge. In the original branch I have some files that in the 2nd branch where moved to a different location. the problem is that when I try to merge from the original branch, it doesn't apply the changes to the new file location even tough it detected that I moved the files with git move
.
I created the following scenario to better explain my problem:
I have branch a
with files a/1.txt
, a/2.txt
. in branch b
I did git mv
to 1.txt
and 2.txt
from directory a
to b
.
next.. in branch a
I modified a/1.txt
, in branch b
when I try merge branch a
into it, it tries to create a/1.txt
instead of applying the change on the new file's location (in directory b
).
how do I resolve this issue ?