Git diff gone mad?

Posted by dr Hannibal Lecter on Stack Overflow See other posts from Stack Overflow or by dr Hannibal Lecter
Published on 2010-06-08T14:48:42Z Indexed on 2010/06/08 14:52 UTC
Read the original article Hit count: 523

Filed under:
|
|
|

I'm trying to figure out what's going on with my local Git repo.

  1. I edit a file.
  2. Git reports everything has changed in the file (I only changed one line)
  3. At first I think "must be a newline problem", but it's not. I do a diff in TortoiseGit, everything looks fine. I do a diff with Netbeans (git plugin), everything seems fine.
  4. I do a reset, backup the file, modify it, git again reports everything has changed.
  5. I do a binary compare in Total Commander, the files have no differences except for the single line I changed.
  6. I do a hard reset again. Git tells me it was done successfully. Git status still says my file has changed. I diff the thing and there are no differences - bug git says there are.

I've tried using both git bash and gui, with same results (I'm on Windows). Any clues, what's going on here?

© Stack Overflow or respective owner

Related posts about git

Related posts about msysgit