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
I'm trying to figure out what's going on with my local Git repo.
- I edit a file.
- Git reports everything has changed in the file (I only changed one line)
- 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.
- I do a reset, backup the file, modify it, git again reports everything has changed.
- I do a binary compare in Total Commander, the files have no differences except for the single line I changed.
- 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