Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

SourceTree detects file difference wrongly in random

Hi 

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.

Hth,

Alexander

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.

Thanks,

Tingting.

Like Alexander Sorg likes this

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

5,792 views 4 12
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you