BIN WebRole/Sql/Database.sql View Binary file not shown
而如“Why does Git treat this text file as a binary file?”所述，其内容可能不包含足够的ascii字符来猜测它是文本文件。
if these files are generated by the Microsoft SQL Management Studio (or whatever it’s called in the version of MS SQL Server’s management tools you’re using), the files it saves are encoded in UCS-2 (or UTF-16) — a two-byte encoding, which is indeed not text in the eyes of Git
“Why is Git marking my file as binary?” The answer is because it’s seeing a NUL (0) byte somewhere within the first 8000 characters of the file.
Typically, that happens because the file is being saved as something other than UTF-8. So, it’s likely being saved as UCS-2, UCS-4, UTF-16, or UTF-32. All of those have embedded NUL characters when using ASCII characters
You can change the encoding of a saved file in SSMS to UTF-8 by selecting encoding ‘UTF-8 with signature’ from the ‘Advanced Save Options’ menu item in the File menu.