Git commit ignore line endings -
is there way make git commit ignore line endings?
i managed figure out how make git diff ignore line endings
git diff --ignore-space-at-eol
this way got diff display lines edited.
but problem git diff default considers file changed in whole, , commits change accordingly.
also tried
git config --system core.autocrlf true git config --system core.autocrlf false
none of these solved problem!
it seems there no way make git commit ignore line endings default!!
just beware of merging tools!
i figured out teams setting line endings ok, merging tool spoiled several files during merging branch, , on have nightmare of eol!! :)
Comments
Post a Comment