很可能是线路终止。尝试 git diff --ignore-space-at-eol .而对于普通(非 git )不一样 diff -b .
git diff --ignore-space-at-eol
git
diff -b