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?
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With