Trying to correct Github's Linguist

443 Views Asked by At

Like many programmers, I use Github for version control. However, my websites which I made with ASP.NET list as PowerShell repos when there's little to no PowerShell involved. I'm trying to fix this by adding

*.rb linguist-language=CSharp

to the .gitattributes file but it isn't taking as it still lists as a PowerShell repo. How can I fix this?

Note: I also tried C# instead of CSharp. Still nothing

https://github.com/nickgilbert1994/Covenant-Tech-Club-Website/blob/master/.gitattributes

1

There are 1 best solutions below

0
pchaigno On

You can tell Linguist to ignore Powershell files:

*.ps1 linguist-vendored