github-linguist

Github language tag for Repository

允我心安 提交于 2019-11-30 01:23:09
问题 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.) 回答1: As far as I know, they aren't really tagged - the languages attached to them are the languages which you use in your project. Github looks through the source and figures out to the best of its ability what languages are in use. If you go to your respository, then to the Graphs tab, you can see the language breakdown. 回答2: A repository can only be "tagged" with

How does github figure out a project's language?

六眼飞鱼酱① 提交于 2019-11-27 17:34:14
I was recently working on a github project in both JavaScript and C++, and noticed that github tagged the project as C++. If you have to pick a single language, this is probably the correct designation since the C++ code is compiled as a JavaScript library, but this made me wonder... how does github figure out what language to tag each project? VonC Update April 2013, by nuclearsandwich (GitHub support team or "supportocat"): the help page " My repository is marked as the wrong language " mentions using now the linguist library to determine file language for syntax highlighting and repo

How does github figure out a project's language?

▼魔方 西西 提交于 2019-11-26 19:04:34
问题 I was recently working on a github project in both JavaScript and C++, and noticed that github tagged the project as C++. If you have to pick a single language, this is probably the correct designation since the C++ code is compiled as a JavaScript library, but this made me wonder... how does github figure out what language to tag each project? 回答1: Update April 2013, by nuclearsandwich (GitHub support team or "supportocat"): the help page "My repository is marked as the wrong language"

Github changes repository to wrong language

橙三吉。 提交于 2019-11-26 17:55:16
问题 I know this isn't a huge deal but I like my Github to be linguistically diversified. I wrote a project in Swift and when I commit it says it's in Objective C. I think it might be because the Parse frameworks are written in Objective C and it detects that, but is there any way to change the display language on the main repository page? 回答1: I found the simplest thing was to create a file called .gitattributes in the root folder of my repository, and give it these contents: * linguist-vendored