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

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

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

3 answers

1 accepted

0 votes
Accepted answer

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.

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
Community showcase
Published yesterday in Feedback & Announcements

How do you analyze GC logs, thread dumps and head dumps?

Hi awesome community!  In this article, I would like to describe the one of the toolset (service) for the analyze some problems on different Java-based instances, of course, as Atlassian admini...

96 views 0 7
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