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

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

    As a follow up, as I just ran into the same issue, another reason for EGit detecting all files as changed is a POSIX file permission problem at least when used together with Cygwin's git.

    The following will fix that; however keep in mind that this also means that they are ignored then:

    $ git config core.filemode false

    0 讨论(0)
  • 2020-11-29 19:44

    i had the same issue and nothing of the proposed solutions did work. i hat the autocrlf feature turned off, the latest version of egit and git installed. the line endings of the repository and local files were both matching.

    the problem was caused by an entry in the .gitattributes:

    * text=auto eol=lf
    

    i could therefore:

    • remove the attribute
    • commit the changes

    but what also did work was to go to command line and type

    git reset --hard

    and then refresh in eclipse.

    0 讨论(0)
提交回复
热议问题