即使内容相同,Git状态也会显示文件已更改
我收到其他人的git checkout,并尝试将未进行的更改提交到本地存储库。但是,即使内容完全相同,也会有很多(如果不是每个)文件被修改。 我已经设置core.fileMode为false,也设置core.autocrlf为false,但是没有成功。 值得一提的是,我收到的Git存储库来自使用Windows的人,而我使用的是Linux。 我该怎么做才能进行实际更改? 编辑:的输出git config -l: user.name=Aron Rotteveel user.email=<removed> color.diff=auto color.status=auto color.branch=auto color.interactive=auto color.ui=true color.pager=true color.branch.current=yellow reverse color.branch.local=yellow color.branch.remote=green color.diff.meta=yellow bold color.diff.frag=magenta bold color.diff.old=red bold color.diff.new=green bold color.status.added=yellow color.status.changed=green color.status.untracked=cyan core.pager=less -FRSX core.whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol alias.co=checkout core.repositoryformatversion=0 core.filemode=false core.bare=false core.logallrefupdates=true core.symlinks=false core.ignorecase=true core.hidedotfiles=dotGitOnly core.autocrlf=false remote.origin.url=<removed> remote.origin.fetch=+refs/heads/*:refs/remotes/origin/* 更新:添加了一些随机示例文件。这些文件只是纯文本,因此最容易包含。 原始文件位于此处:https : //gist.github.com/c3c5302430935155ef3d。十六进制转储明确表示文件不同,但是我不知道是什么原因导致的,以及如何修复它。 …