DEV Community

Changing Your Repo's Language in GitHub

Katherine Kelly on May 29, 2020

I recently organized my pinned repositories on GitHub and noticed that the language shown for one of my repositories didn't quite seem right. It in...
Collapse
 
sanjarcode profile image
Sanjar Afaq

How do I exclude a folder/file from being used for language determination?

Example: I have a .obsidian folder (i.e a folder created by a tool), it has JS and other stuff. I don't want this to be tracked, as it's just a tool, not the content of the repo, per se.

Collapse
 
htho profile image
Hauke T.

This should do the trick:

.obsidian/** linguist-vendored

Collapse
 
raphink profile image
Raphaël Pinson

It looks like this was published a bit too early. I'd like to know how to do it though!

Collapse
 
katkelly profile image
Katherine Kelly

Hi, thanks for pointing that out! There was an issue with dev.to showing an old draft since the whole post was there when I initially published it. But it’s been updated so check it out!

Collapse
 
raphink profile image
Raphaël Pinson

Ah I've had this kind of issues, too. Very frustrating!

Collapse
 
htho profile image
Hauke T.

This is the file I was looking for. It explains the options available in .gitattributes

Collapse
 
muhammadcodes profile image
Muhammad Sani Haruna

Thanks for this!!!

Collapse
 
httpanand profile image
Anand

Tysm !!!

Collapse
 
realifebrahmin profile image
Aryan Ritwajeet Jha

thanks a lot!