ceth
ceth

Reputation: 45335

Why git decide that my file is binary

I have added plain text file to the repository and git decided that it is a binary file. Here is my file (link) and github show it as plain text file.

But if I try to look at changes which have been made by last commit I see the message

Binary file not shown 

Upvotes: 6

Views: 1968

Answers (2)

manojlds
manojlds

Reputation: 301587

It is encoded in UTF-16. Try changing the encoding to ASCII or UTF-8 and commit and push.

Upvotes: 2

Chris Eberle
Chris Eberle

Reputation: 48795

From cloning your repo, I see that the file in question is UTF-16. I don't believe git supports this as a text format. See this link for more info.

Upvotes: 7

Related Questions