I am trying to pull the changes from remote repo and have ran into this issue that local files can't be overwritten for some reason. I've tried using Discard option - it executes but does nothing.
As you can see from screenshot I'm attaching files are pretty much identical when I look into direct compare - but for some reason they always remain as "Uncommited changes" - if I try Discard option on file - it also executes but the file still stays in Working Copy Changes.
How to solve this issue?
Answer by Ricardo M [Atlassian]:
This looks like a difference in line ending conversion settings - either since this file was committed, or it was committed by someone else who had different settings. The file itself isn't modified (which is why discard won't work), it's just that the line ending conversion would produce a different result with the user's current settings.
So either core.autocrlf has changed (or file was committed by someone else with different settings), or .gitattributes has.
The easiest way to resolve it is make sure those settings are as desired now and commit, 'baking in' the new line ending conversion preference.
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG