This is something that occasionally affects some of our developers when they do a pull with rebase. For example, after making 5 commits locally to master and they run a:
git pull --rebase origin master
to make their history linear before pushing. Most of the time this works fine, but every now and then, during the "Reapplying your commits" stage, around a couple of commits in, the rebase will halt with the error:
The following untracked working tree files would be overwritten by merge
and list the files that were modified by the commit(s) that were already applied.
I've seen a number of reports of this problem, such as this question, but they are all talking about OSX and we are on Windows. Nevertheless we tried setting:
git config --global core.trustctime false
but that hasn't helped. We've made sure anti virus isn't monitoring the source controlled directories and there are no backup programs running... nothing should be touching these files during a rebase operation.
Has anyone else encountered this problem and found a cause?