Skip to content
Discussion options

You must be logged in to vote

#166136

Why github labels your project weirdly

Even you poured your heart into a slick React app, only for GitHub to slap a big CSS label on the repo? Yeah, it's annoying. Here what's actually going on -- and what you can do about it.

How GitHub see your code

  • GitHub donsen't get context.
  • It uses a tool called Linguist.
  • More lines = more weight.

What really happening?

  • Language tages are just guesses.
  • GitHub doesn't know which files matter.

How to set the record straight

Possible to make GitHub see things from your side? Here's a quick fix:

  1. Add a .gitattributes file to your repo.
  2. Drop in these lines:
* .css linguist-detectable=false
  1. Commit and Push
  2. Wait a minute.

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by HariVeeraVenkat
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Feed
Labels
Bug GitHub or a GitHub feature is not working as intended
5 participants