Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

S Baker December 15, 2012

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

0 votes
Answer accepted
stevestreeting
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 16, 2012

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

S Baker December 22, 2012

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.

0 votes
KieranA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 16, 2012

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
TAGS
AUG Leaders

Atlassian Community Events