git指责整个文件被改变了 [英] git accuses that whole file was changed

查看:284
本文介绍了git指责整个文件被改变了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Eclipse RCP应用程序,现在git表现得非常奇怪。每当我们在课堂或任何文件中更改某行时,git都会指出整个文件已被更改。

请参阅此主旨: https://gist.github.com/luizkowalski/5968143

唯一真正改变的是这行: Bundle-Version: 2.6.13 到 Bundle-Version:2.6.14

此行为在前几天开始。我们不会在我们的机器上更新git。这个差异是由GitHub生成的。 这不是一个新功能或者一个bug。这是你们在不知不觉中犯下的事情的结果。记住,Git正在跟踪你的repo的二进制数据的所有变化。有几种类型的更改可能会导致这种情况。有没有人把这个文档的全部文本从一个编辑器复制到另一个编辑器,用副本替换原始文件(也许跨越不同的操作系统)?您的项目字符集是否最近使用过更改?其他的东西也会导致这种类型的变化检测,但重要的是要明白,这不是Git的错误。


I have an Eclipse RCP app, and git is now acting very weird. Everytime we change some line in class or any file, git accuses that whole file was changed.
See this gist: https://gist.github.com/luizkowalski/5968143
The only thing that was really changed was this line: Bundle-Version: 2.6.13 to Bundle-Version: 2.6.14.
This behavior started some days ago. We do not updated git on our machines. This diff was generated by GitHub

解决方案

This is not a new feature or a bug. This is a result of something you guys committed unknowingly. Remember, Git is tracking all changes to the binary data of your repo. Several types of changes could have caused this. Has anyone copied the whole text of this document from one editor to another, replacing the original with the copy (perhaps across different operating systems)? Has the character set your project is using changed lately? Other things can cause this type of change detection too, but what is important to understand is that this is not an error on Git's part.

这篇关于git指责整个文件被改变了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆