February 2nd 2018

Github Misidentifies my Project's Coding Languages and How To Fix that


I have a project on github that is 100% bash - yet github sees it as 70% shell and 30% CSS.

Turns out one large file is seen as CSS only because of its extension .less. since this is really a help file, I created a .gitattributes file that marked it as documentation (which causes github's language identifier to ignore it), and voilá: 100% Shell!

See here how to do it: https://github.com/github/linguist#using-gitattributes