Dealing with line endings / Re-normalizing a repository · GitHub Help

Stéphane Thibault >_

Re-normalizing a repository After you’ve set the core.autocrlf option and committed a .gitattributes file, you may find that git wants to commit files that you’ve not modified. This is because git wants to normalize the line endings for you. The best way to do this is wipe out your working tree (all the files except the .git directory) and then restore them. Make sure you’ve committed any work before you do this, or it will be lost.