同事遇到的茶包。
git diff 時某文字檔被當成二進位檔案無法顯示差異,後來發現是 Unicode 編碼(UTF-16 LE with BOM/UCS-2 LE with BOM)造成,用以下範例重現:
type a.txt 可檢視文字內容,但 git diff 比對時卻出現 "Bi... Read More
↧