You can now force the language of any file in your repositories using Linguist overridesLinguist overrides. Linguist
GitHub Linguist is the open source-source library detectingused to detect the language of files across github.comGithub.
To force your .c
files to be highlighted using the C++ grammar, you can add the following into your .gitattributes
file:
*.c linguist-language=C++