代码之家  ›  专栏  ›  技术社区  ›  Johannes Rudolph

清理签出后Git文件已更改

git
  •  4
  • Johannes Rudolph  · 技术社区  · 15 年前

    我做的 git checkout master . 如果我这样做了 git status 它在我的工作目录中显示了两个更改过的文件,即使我没有碰它们。这似乎是某种行尾问题。

    git reset --hard HEAD 也没用。

    core.ignorecase=true ,没用。

    1 回复  |  直到 15 年前
        1
  •  7
  •   Community Mohan Dere    8 年前

    你准备好了吗 core.autocrlf 假(尤其是在窗户上)?

    this answer 有充分的理由让它变成假的。

    .gitattribute filter driver 它将对文件内容执行一些更改。