5

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

Can anyone tell me how to change it?

jonrsharpe
  • 115,751
  • 26
  • 228
  • 437
Harsh Trivedi
  • 5,591
  • 3
  • 12
  • 14

2 Answers2

4

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.

Amine Horseman
  • 162
  • 1
  • 12
1

You don't. It's assigned based on the language most-used in a given repository (not sure if it's file count based or line based though).

Michal M
  • 1,521
  • 14
  • 35
  • `The percentages are calculated based on the bytes of code for each language` from https://github.com/github/linguist – Chro Feb 24 '20 at 12:03