I have read all the other questions regarding differences between EGit and Git when it comes to unstaged and dirty files but none of the proposed/accepted solutions worked for me.

I am running Windows 7 and Cygwin. I have an Eclipse workspace in location "C:/Workspace". When in Cygwin, in "/cygdrive/c/Workspace":

$ git status
# On branch master
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#       Temp/bin
nothing added to commit but untracked files present (use "git add" to track)

as expected but in Eclipse (Egit), each and every single file is seens as "unstaged":

Screenshot of Eclipse with the Staging view showing all files as "unstaged"

which is unexpected. I tried various solutions, including setting "core.filemode=false". All the files are in the workspace in "C:/Workspace/" and there are no links of any kind. What I am missing?

有帮助吗?

解决方案

The solution suggested by @robinst solves the problem. To avoid such discrepencies between EGit and Git because of the way that Windows and Cygwin deal with CR and LF, the solution is to set the property:

core.autocrlf=false
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top