Github Language Tag

On Github, some projects are marked as in one language. How to add one of these tags. (Objective C, PHP, etc.)

+13
github github-linguist
Jul 22 2018-10-22T00:
source share
3 answers

As far as I know, they are not tagged - the languages โ€‹โ€‹that you use in your project are attached to them. Github scans the source and determines exactly which languages โ€‹โ€‹are used.

If you go to your repository, and then on the Charts tab, you can see a breakdown of the language.

+13
Jul 22 '10 at 1:37
source share

A repository can be tagged with only one language in the search results. This language is the first of language statistics. Language statistics are computed by the Linguist open source project according to the total file size for each detected language.

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

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

or override the detected language:

 *.js linguist-language=Java 
+3
Aug 13 '17 at 7:43 on
source share

You should be able to publish or initiate compilation with a language-specific template in which you want to mark it (for example, an empty .cs file or a .js file), and then add the whole project; however, it looks like pain.

I found that if you go to the "Add Topics" section in the far left corner of the "Code" section, you can add all the languages โ€‹โ€‹that you used for those that might look close enough to your project.

0
Aug 05 '17 at 10:22 on
source share



All Articles