0

I am using git extentions as my git client, an in the repository, there is a .xml file, but in the git extentions tool, I cannot see the xml diff, because it has been treated as a binary file, what can I do to see the diffs

git diff

I have created a .gitattributes file, and write *.xml text, but it seems no use

enter image description here

  • 1
    What's the encoding on that file? You may need to check [this out](https://stackoverflow.com/questions/777949/can-i-make-git-recognize-a-utf-16-file-as-text) – Zac Anger May 04 '23 at 02:00
  • You can try `git diff -a` or `git diff --text`. – ElpieKay May 04 '23 at 03:07

0 Answers0