I am trying to merge changes from a colleague into my local repository but git keeps on complaining that I have modified the file and that my changes will be overwritten ("error: Your local changes to the following files would be overwritten by merge").
If I compare my file with the HEAD using egit, it says that nothing has changed (whitespaces are not ignored).
If I now type
git diff HEAD -- myfile
it says that the file has completely changed. (I have removed the entire previous content of the file, and then re-added the entire new content).
My file contains XML but the extension of the file is ".inspector".
My .gitattributes file contains the following:
* text=auto
*.fib text
*.inspector text
*.vm text
*.palette text
*.owl text
*.shema text
*.dict text
and in my git configuration I have the following information (plus email, name and branch/remotes stuffs):
core.autocrlf=true
core.trustctime=false
core.repositoryformatversion=0
core.filemode=false
core.logallrefupdates=true
core.autocrlf=true
I am working on Windows with git 1.7.5.1
I checked this question but it did not work for me.
I also tried to do
git checkout 1.5 -- myfile
but the problem remained.
The github repository (if it can be useful to anyone) is located here: https://github.com/agilebirds/openflexo
And the problematic file is the following: https://github.com/agilebirds/openflexo/blob/1.5/flexodesktop/modules/flexoworkfloweditor/src/main/resources/Inspectors/WKF/Role.inspector which has been recently edited by my colleague (who works on a Mac).
If any additional information is needed, don't hesitate to ask, I will gladly provide it.