The reason for this is git's feature to automatically convert between the different line endings, this is usually undesirable as the editor takes care of this anyway.
You can disable the feature using:
git config core.autocrlf false
And reset the changes using:
git reset --hard # This will reset any changes in your working directory, make sure to save the important changes.