#!/bin/sh git config core.autocrlf true #or input. I use input for windows in order to always will be LF. git rm --cached -r . git reset --hard #git add . #git commit -m "Normalize line endings"