在 pull (到一个干净的生产类型的 repo 中)所有变更集遇到并导致文件看起来已修改并需要提交。 git 日志没有显示应该导致这些更改的提交...这些更改只是在没有日志注释的情况下提取,因此它认为它不同步。
pull 结果显示每个文件的“需要更新”消息。
最佳答案
如图所示 Git project ,当 Git 尝试为在 Unix 上开发并在 Windows 上克隆的项目调整 eol 样式时,可能会发生这种情况:
via msysgit Troubleshooting
run command in git bash:
git config --global core.autocrlf false
if this is not done then git svn rebase reports "needs update" thinking that changes have been made to the source May run into troubles with the commit
查看此 SO answer for more .
关于Git pull 结果为 "needs update",文件显示为已修改,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6262986/