There is nothing changed, but eclipse egit marks the file as changed
the file “run.bat” is marked as “changed”
- How to make eclipse remember ssh key passphrase?
- Eclipse create git repository failure
- EGit - fetch, merge, pull troubles
- Eclipse Run Configuration - Working Directory for projects not in workspace
- Eclipse, Git and Bitbucket - Can't push - Error 401 Unauthorized
- Deleting a remote branch with Egit
Compare with “file in Git index”, you can see nothing is different
Compare with “file in HEAD”, you can see nothing is different neither
My friend uses mac and I use windows, but we all configured git as “commit unix lineend”.. I also checked the lineend of my source and the HEAD, they are the same(I configured git to convert them to “\r\n” when pulling)
Where is wrong? Is it a bug of Egit?
6 Solutions collect form web for “There is nothing changed, but eclipse egit marks the file as changed”
One of the first things I’ve had issues with in Git.
I’ve said this forever:
git config --system core.autocrlf false
To get rid of CR highlighting in diff and patch views, use:
git config --system core.whitespace cr-at-eol
If you share your computers with others, replace ‘–system’ with ‘–global’.
Eclipse Preferences / Team / Git / Configuration / User Settings
key: autocrlf value: false
The key should already exist, so just need to edit the value.
If creating a new key then use
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
For eclipse specific issues for linefeed, you can also change the return character in Eclipse Preferences where you can change the New text file line delimiter from Windows syntax to Unix which should help.
you can ignore whitespace differences with Eclipse settings under Compare/Patch.
Preferences–>General–>Compare/Patch,you can find the “Ignore white space” in the right,and select this option.
In General->Workspace. Select Text encoding UTF-8