'How to disable Git's MSWord integration with `*.dot` files?

I made a file with a *.dot extension. It's a text file, nothing to do with MS Word.

When I try to use git diff I get this error:

C:\Users\Christopher\Source\Repos\time>git diff dependencies/dependencies.dot
warning: CRLF will be replaced by LF in dependencies/dependencies.dot.
The file will have its original line endings in your working directory
C:\Users\CHRIST~1\AppData\Local\Temp/fX3Ut1_dependencies.dot is not a Word Document.
dependencies/dependencies.dot is not a Word Document.

Apparently Git thinks it's a Word Document. I'm surprised -- I thought Git treated all files as text.

Can I configure Git to treat this like a regular text file?

The problem is on my machine (running Windows 10): when the file is on GitHub I can properly see its diffs.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source