Unstaged changes immediately after cloning in Eclipse

跟風遠走 提交于 2019-11-30 23:59:24

Like already mentioned in the comments,this is a line-ending problem.

I also had this issue one day.

The git plugin(egit) you are using does have a issue with .gitattributes where you can configure how line endings should handled. - If you are using the plugin and still want to use it, you need to have to fix the line endings first and than configure your line endings in your IDE to use Unix-Line-Endings, as well as on the other(usually Windows) machine. This will solve the line ending problem for new files.


I am totally against the fact that git should handle your line-endings, you as a developer are responsible for managing this. So let your IDE handle this issue and configure it as already mentioned.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!