[英]Why is .cpp classed as binary file?
I'm using Visual Studio 2017 and I'm trying to get my project to work with GitHub. 我正在使用Visual Studio 2017,我正在尝试让我的项目与GitHub一起使用。 No matter what I do, .cpp file-changes wont show as diff because "Binary files are not shown". 无论我做什么,.cpp文件更改都不会显示为diff,因为“二进制文件未显示”。
I've tried editing .gitattributes
file with *.cpp text
without luck. 我已经尝试用*.cpp text
编辑.gitattributes
文件而没有运气。 I've checked and the .vcxproj
is set to save in UTF-8. 我已经检查过了.vcxproj
设置为以UTF-8保存。 I've also tried specifying eol=lf
but it seems like nothing works. 我也尝试过指定eol=lf
但似乎没什么用。 Please help! 请帮忙!
可能有.gitignore
文件,可能有*.cpp
忽略更改.cpp
文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.