Question

When I'm trying to merge Git says:

foo.txt deleted in HEAD and modified in release

Actually, I didn't delete foo.txt in my branch, but moved it to a new place, a few times. I suspect that Git lost this multiple movement information and now thinks that I deleted the file and created a new one somewhere else.

Can I somehow inform Git where the file is located now?

Was it helpful?

Solution

This is how I solved the problem:

git rebase

I applied all my changes to the master branch, one by one, resolving conflicts incrementally.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top