Question

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?

Was it helpful?

Solution

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
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top