Why does git think my .sql file is a binary file?

前端 未结 6 1530
-上瘾入骨i
-上瘾入骨i 2020-12-04 16:14

I have some .sql files that I just for the first time pushed to github. However when I look at the commit it is saying:

BIN  WebRole/Sql/Database.sql Vi         


        
6条回答
  •  误落风尘
    2020-12-04 17:17

    Here is a quick workaround that worked for me, using SSMS 2012. Under tools => options => environment => international settings, if you change the language from "English" to "Same as Microsoft Windows" (it may prompt you to restart SSMS for the changes to take effect), it will not use UTF-16 as the default encoding for new files anymore- all new files I create have Codepage 1252 (file => advanced save options) now, which is an 8 bit encoding scheme and seems to have no problems with Git Diff

提交回复
热议问题