Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Egit shows all files as changed

I'm working with Git on my Windows 7 PC on the command line and with TortoiseGit. This works fine. Now I've installed EGit for Eclipse. EGit is showing all files as changed although git status correctly reports, that there are no changes.

Any idea what's wrong?

like image 319
BetaRide Avatar asked Dec 15 '11 14:12

BetaRide


People also ask

Why does git show that all my files changed when I didn't change them?

These changes mean that metadata about your file changed, however the content of your file did not. If you're working in a group, this may start to intefere with pushes or just add noise to your commits.

Does git diff show all changes?

The git diff command returns a list of all the changes in all the files between our last commit and our current repository. If you want to retrieve the changes made to a specific file in a repository, you can specify that file as a third parameter.

How does git know which files have changed?

Indexing. For every tracked file, Git records information such as its size, creation time and last modification time in a file known as the index. To determine whether a file has changed, Git compares its current stats with those cached in the index. If they match, then Git can skip reading the file again.


1 Answers

I also had the similar issue, I have changed the below property of repository setting under Git configuration in eclipse

autocrlf = false

This fixed the problem

You can get more details from the below link too:

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

Basically I added this property as true in order to address ctrl+M chars in script files. Now I am not sure how to address this issue. Any thought on this, please share.

like image 65
Lavanya Avatar answered Oct 18 '22 19:10

Lavanya