私が持っていたgitの問題の解決策を試しました:
現在のディレクトリから開始して、バージョン管理下にないファイルを再帰的に削除することにより、作業ツリーをクリーンアップします。
-d = Remove untracked directories in addition to untracked files -f = Force (might be not necessary depending on clean.requireForce setting)
git help clean を実行
変更を元に戻すことはできますか?