Can SourceTree diff markdown with file extension .md or .markdown?

I'm using Xcode and GitHub, would like SourceTree to diff README.md.

SourcTree says it's a binary file, doesn't display a diff.

3 answers

1 accepted

This widget could not be displayed.

The problem is likely that you've encoded the file as UTF-16. Git and Mercurial can only diff/merge UTF-8 text files.

Thanks! In Xcode File Inspector I converted encoding from UTF-16 to UTF-8 and now when I edit the file SourceTree shows the diff.

This widget could not be displayed.

I think this might have something to do with file associations, because I'm using both .markdown/.md file types and SourceTree displays them fine for me. Could you change the "Always Open With" option on both markdown/md files? (Ctrl+click -> Open With -> Other -> check "Always Open With" and pick say, textedit?)

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted 46m ago in Canada

Topic Tuesday - August 21

Hello and happy Topic Tuesday! We would love to continue to find out more about you. Here’s the question: What is one way Atlassian products have shifted the way your team works? Looking forw...

10 views 2 0
View post

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