Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change repository language in GitHub? [duplicate]

Tags:

git

github

I want to change the repository language to another language that is used in the repository.

Can anyone tell me how to change it?

like image 384
Harsh Trivedi Avatar asked Mar 30 '18 11:03

Harsh Trivedi


1 Answers

GitHub uses Linguist library to determine repository statistics. You just have to create a .gitattributes files in your repository and add the following commands:

To ignore all CSS files for examples use the linguist-vendored command:

*.html linguist-vendored

To ignore all files in a CSS folder for examples use this syntax:

css/* linguist-vendored

To force a certain file extension to be recognized as a javascript language for example use the linguist-language command:

*.gs linguist-language=Javascript

For more information check the liguist library documentation.

like image 54
Amine Horseman Avatar answered Nov 01 '22 09:11

Amine Horseman