2

I have a few rainmeter configuration files and I have a few unicode symbols, so I have to save as>unicode in notepad otherwise it messes up my unicode symbols.

But git thinks that those are binary files and git-gui doesn't show me the diff.

Is that how it's going to be? or is there a fix for it?

laggingreflex
  • 32,948
  • 35
  • 141
  • 196
  • 4
    gitattributes: http://stackoverflow.com/a/778167/1031417 – 0x90 Jun 22 '13 at 08:35
  • possible duplicate of [Can I make git recognize a UTF-16 file as text?](http://stackoverflow.com/questions/777949/can-i-make-git-recognize-a-utf-16-file-as-text) – tacaswell Jun 23 '13 at 15:44

1 Answers1

2

Create a .gitattributes file with the contents

pattern diff

where pattern is a pattern that matches the names of the configuration files. This will make diff treat the files as text.

The Pro Git book has a chapter on Git Attributes, and there's the man page of course.

Community
  • 1
  • 1
Klas Mellbourn
  • 42,571
  • 24
  • 140
  • 158