Identical Files marks as modified


i update my script. And source tree detect the files as modified, even though the file is identical (i confirmed it by using win merge)

Any idea what might caused this ?

5 answers

Whitespace changes? Both SourceTree and WinMerge may be configured to ignore whitespace.

It can also be line endings (win/unix) or some other non-printable characters.

Any idea on how to detect this ?

i looked on WinMerge's Options, Whitespace are not being ignored... probably the problem is on SourceTree

See the below image, 

Files are on "Unstage files", no differences whatsoever. Winmerge confirms it as identical


On the right side is a gear icon. If you click it, either "Ignore Whitespace" or "Show Whitespace" will be checked. Which is it?

Your git config's core.filemode may be set to true meaning that a change in the files' permissions would result in a modified file. Less plausible since it requires more explicit intervention, but still possible.

It's "Show whitespace"

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 23, 2018 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...

964 views 4 2
Read article

Atlassian User Groups

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!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you