Github language tag for Repository

Viewed 11455

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 Answers

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
Related