Laravel 开源电商项目源码 被 github 判断认为是 HTML 项目,可是实际项目并无 html 代码。css
这就尴尬了,只有默默的经过 google 搜索 github change project type
发现这篇文章:How to Change Repo Language in GitHubhtml
简单来讲只要在项目根目录下添加 .gitattributes
文件,而后经过设置相关目录或者类型文件标记为相关语言便可。git
支持的属性语法以下:github
*.css linguist-vendored *.js linguist-language=Vue modules/* linguist-language=PHP