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
も機能していません。