P
P
Padre2017-07-17 10:43:27
GitHub
Padre, 2017-07-17 10:43:27

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

1 answer(s)
S
Sergey Karpuk, 2019-05-16
@sergeykarpuk

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 question

Ask a Question

731 491 924 answers to any question