git status
告诉我,修改了几个文件。但是当我git diff
使用下面的任何参数执行时,它是空的。
--ignore-space-at-eol
Ignore changes in whitespace at EOL.
-b, --ignore-space-change
Ignore changes in amount of whitespace. This ignores whitespace at line end, and considers all other sequences of one or more whitespace characters to be equivalent.
-w, --ignore-all-space
Ignore whitespace when comparing lines. This ignores differences even if one line has whitespace where the other line has none.
我已尝试git checkout .
重置此更改,但无济于事。我怎样才能将这些文件回滚到原始状态(这样它们就不会被“修改”了)或者git status
永久忽略空白更改?
git reset --hard
也不工作。