Git commit end of line ignore
Is there a way to make a git commit to ignore line endings?
I managed to figure out how to make a git diff ignore line endings with
git diff --ignore-space-at-eol
This way I got a diff to display only the lines that I actually edited.
But the problem is that git diff by default treats my file as changed altogether and then it commits the change accordingly.
Also I have tried
git config --system core.autocrlf true
git config --system core.autocrlf false
None of them solved my problem!
+3
source to share
1 answer
There seems to be no way to make a git commit to ignore the default line endings !!
Just beware of instrument merging!
I figured my command settings for line endings were fine, but the merge tool messed up several files when I merged a branch, and from now on we have an EOL nightmare !! :)
0
source to share