Github language tag for Repository

前端 未结 4 1758
轮回少年
轮回少年 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:37

    A repository can only be "tagged" with a single language in the search results. That language is the first from language statistics. Language statistics are computed by the open source project Linguist according to the total size of files for each language detected.

    You can override language statistics using Linguist overrides. In particular, you can choose to ignore some files from statistics:

    directory/to/ignore/* linguist-vendored
    *.somextensiontoignore linguist-vendored
    

    or override the detected language:

    *.js linguist-language=Java
    

提交回复
热议问题