I have cloned a repository that had inconsistend line endings. I have added a .gitattributes
that sets the text attribute for the files I want to normalize. Now
With Git client 2.16 and higher there is now a much simpler way to do this. Just use:
git add --renormalize .
Note: it's better to do this with a clean workspace. For details, see: