1

I have just cloned a repository and the under the included changes panel in Visual Studio there were 100+ changes being detected. I did a git reset --hard and that dropped the changes to about 20.

I've also tried the git --reset hard HEAD variant. I've also tried git stash git stash drop and git checkout . A diff on the files shows they haven't been changed.

Does anyone know how I might reconcile the false changes or why this might be happening?

Steji
  • 580
  • 1
  • 6
  • 17
  • 1
    Are you sure they are false? Newline changes, tab change etc may not appear in a diff but they *are* changes nonetheless – Panagiotis Kanavos Feb 17 '16 at 11:33
  • It's possible it could be the encoding, I'll pull it up in another diff tool to see if I can see anything. – Steji Feb 17 '16 at 11:39

1 Answers1

1

It was due to line endings. See this article for dealing with them.

Thanks to @Panagiotis Kanavos

General Grievance
  • 4,555
  • 31
  • 31
  • 45
Steji
  • 580
  • 1
  • 6
  • 17