How To Change GitHub Repository Language For Java Projects
Published in
2 min readDec 18, 2018
The Solution / TL;DR
Add a new file named .gitattributes
at the root level, to your master
branch in your repository
Add the below lines to the file:
*.java linguist-detectable=true
*.js linguist-detectable=false
*.html linguist-detectable=false
*.xml linguist-detectable=false