Github language tag for Repository

前端 未结 4 1757
轮回少年
轮回少年 2021-01-04 05:02

On Github, some projects are tagged as being of one language or another. How do I add one of these tags. (Objective C, PHP etc.)

4条回答
  •  悲&欢浪女
    2021-01-04 05:27

    Make .gitattributes file in the root.Then depending on the language type make the below command true.So if your project is Javascript make it true, if your project is java make it true and so on.Push the code and refresh the page.

    So now the desired language should get displayed in your git repo.

    *.js linguist-detectable=true
    *.java linguist-detectable=false
    *.html linguist-detectable=false
    *.xml linguist-detectable=false
    

提交回复
热议问题