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

前端 未结 8 1758
终归单人心
终归单人心 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:24

    One of the first things I've had issues with in Git.

    I've said this forever:

    git config --system core.autocrlf false
    

    To get rid of CR highlighting in diff and patch views, use:

    git config --system core.whitespace cr-at-eol
    

    If you share your computers with others, replace '--system' with '--global'.

提交回复
热议问题