user11682335
user11682335

Reputation:

"git diff" highlight everything in green - not the new changes

When I type 'git diff filename' it highlights all of my code in green (I did modifications to my file and CMD+S to save changes and test multiples times) instead of just the new lines... Anybody can help? Thank you guys

Upvotes: 1

Views: 450

Answers (1)

eftshift0
eftshift0

Reputation: 30156

there was a change in ELF format. The old flags to control this are a mess. The best thing you can do is set git to not mess with it by adding * -text to gitattributes. Set the files to their original EOL format (amend if it's already commited) and then everything should be back to normal.

Upvotes: 2

Related Questions