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

Accepted Answer
0 votes

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
Posted 3 hours ago in Featured Groups

Tuesday tips & tricks: What is the Atlassian Community?

It's officially Tuesday, which means it's officially time for another tip to help you better navigate this space we call the Atlassian Community. 😄 I got a great question from community member, Sa...

13 views 0 1
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