tags:

views:

33

answers:

1

I did git checkout master. If I do git status it shows two changed files in my working directory, even though I haven't touched them. It appears to be some sort of line ending issue.

git reset --hard HEAD doesn't help too.

I have set core.ignorecase=true, doesn't help.

What's wrong here? Git on Windows is still bugging me like hell...

+2  A: 

Did you set core.autocrlf to false (especially on Windows)?

See this answer for good reason to leave it to false.

Other causes could include a .gitattribute filter driver which would perform some changes on file content.

VonC
hell yeah, the autorclf did the trick. Seems to be enabled by default and everyone else on the net recommends turning it on (that's what I did trying to fix my problems and it didn't work).
Johannes Rudolph
@Johannes: "everyone else on the net recommends turning it on"?? If so, I am definitively *not* in that camp ;)
VonC