How To Change GitHub Repository Language For Java Projects

Suren K
TechInPieces
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

--

--

Suren K
TechInPieces

Software Engineering Manager, Programmer, Architect, Inventor, Speaker and Writer. Works @Capgemini https://surenk.com