There is nothing changed, but eclipse egit marks the file as changed

前端 未结 8 1787
终归单人心
终归单人心 2020-11-29 19:08

I\'m using eclipse egit with github. I found something strange that I didn\'t change anything, but egit marked the file as "changed". See the images:

8条回答
  •  余生分开走
    2020-11-29 19:27

    I also have the same issue from the Eclipse git commit is showing this issue

    once modified file and finally removed the changes from the file even though it showing the file in Un staged changes section.

    Solution:
    Eclipse -> Window -> Preferences -> Team -> Git -> Configuration -> User Settings (right side tab)

    click on Add Entry

    Key  : core.autocrlf
    Value: true
    

    click on Ok then click on Apply -> Ok Refresh your "Git Staging tab" or check the Team -> commit option. now it will only show the exact changes only.

提交回复
热议问题