Identical Files marks as modified

Hello,

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

identical.jpg

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

649 views 0 4
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