I am using Git for Windows 1.9.5; my remote repository has mixed line endings (some CRLF some LF). I would like to normalize the remote repository to entirely LF.
My settings:
git config core.eol lf
git config core.autocrlf false
.gitattributes * text=auto
I have tried:
Refreshing a respoitory after changing line endings
git rm --cached -r .
git reset --hard
git status
The gitattributes documentation
rm .git/index # Remove the index to force git to
git reset # re-scan the working directory
git status # Show files that will be normalized
git rm --cached -rf .
git diff --cached --name-only -z | xargs -n 50 -0 git add -f
git ls-files -z | xargs -0 rm
git checkout .
git status
After the git status
, I open a sampling of files in a text editor and expect them to have changed from CRLF to LF line endings, but none have.
What do I need to do to change all line endings in both my local and the remote repository to LF?