Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

SourceTree detects file difference wrongly in random


I have a problem when using sourceTree recently.

When I clone a repository and switch to develop branch. I see SourceTree detects a lot of difference as follows. I can not understand why it will happen?

detect difference wrongly.png

1 answer

It could be that changes in white space are detected, which are not visible to the plain eye.

Try selecting "ignore whitespace" on the tools (gear wheel) menu in the upper right corner of your screenshot. If the changes disappear, it's maybe a change from tabs to spaces or vice versa.



Hi Alexander,

Thanks for the reply.

The strange thing is I just clone a repository and did not do anything. Then it seems the two files are changed automatically. Not sure why.

And even i click "Discard", it cannot restore. It is always changed automatically.



Like Alexander Sorg likes this

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events