我们在访问gitHub的时候,经常会看到如下的语言标记,那么这个是如何设置的呢,下面我就整理下具体的操作步骤:

github上传的项目代码语言类型修改

首先在项目根目录下创建一个文件,文件名为.gitattributes

文件内容为:

*.js linguist-language=vue
*.css linguist-language=vue
*.html linguist-language=vue

 

github上传的项目代码语言类型修改

 

然后提交代码到github即可

github上传的项目代码语言类型修改

 

相关文章:

  • 2021-06-06
  • 2021-11-28
  • 2022-01-29
  • 2022-01-19
  • 2021-06-14
  • 2021-04-01
  • 2021-08-24
猜你喜欢
  • 2021-12-18
  • 2022-02-19
  • 2022-02-09
  • 2021-12-14
  • 2022-02-23
  • 2022-01-14
  • 2021-12-14
相关资源
相似解决方案