Win7,git 1.8.3.1(来自git-scm.org)。
我有一个settings.html文件,但git认为它是二进制的。当我在分支之间进行diff时,我看到:
[master]> git diff master work2
diff --git a/settings.html b/settings.html
index 2e46976..620dff4 100644
Binary files a/settings.html and b/settings.html differ
我已经尝试过保存、提交和推送settings.html文件:
- Unicode (UTF-8带签名) - Codepage 65001
- UTF-8,没有签名
- US-ASCII代码页20127
但是,没有成功;git认为这个html文件是二进制的。
我该如何让git把这个文件以及所有的html文件都视为文本?
(我怀疑是VS2012搞得鬼,但项目中的其他html/css/js文件都被视为文本。)
非常感谢您提供的任何见解...