I'm using eclipse egit with github. I found something strange that I didn't change anything, but egit marked the file as "changed". See the images:
the file "run.bat" is marked as "changed"
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?
Eclipse Preferences / Team / Git / Configuration / User Settings
("core" section)
key: autocrlf
value: false
The key should already exist, so just need to edit the value.
If creating a new key then use core.autocrlf
.
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'.
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