I have a branch master
and a branch feature
which was checked out from master
.
master
gets commits pushed into it from other developers and I regularly merge master
back into feature
, so that it keeps up with new developments from other branches.
However, I keep getting the same conflicts in the same files every time I do a git merge master
, although I resolved the conflict before and committed the changes.
Any ideas on what could be the cause for this and how to prevent it?
Thanks!
git add
ing it again, git even removed it from the index because it was exactly the same as the one already present. – Chiropodymaster
. Sorry, I probably wasn't clear enough about that the first time. The commits are not gone and some of the source files inmaster
are changed again after the previous merge. Which leads me to think that this might be the cause for the problem... I would expect git to be smart enough to see that the conflicting part of the file has not been changed and thus it wouldn't mark it as a conflict, though... – Chiropody