Answer the question
In order to leave comments, you need to log in
How to change the language of a git repository?
The point is that I am uploading JS, but it is valid inside the html file. The language of the repository is defined as HTML, but can you somehow change it to JS and by what principle will it be determined if there is, for example, 1 JS and 1 HTML file? Which one has more lines, or what?
Answer the question
In order to leave comments, you need to log in
Github uses linguist to parse the contents of the repository. You can set the desired language using the .gitattributes file.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question