Skip to content

how to change the category? #23333

Answered by Wabri
ura2rist asked this question in New to GitHub
Jul 21, 2019 · 6 comments · 7 replies
Discussion options

You must be logged in to vote

Hi @ura2rist,

Welcome to the Github Community Forum!

You cannot change the language of the repository, but you can change the attributes of the github repository. I mean that if you have a project where there are 60% css and 40% javascript you can said to github-linguist, that you want to ignore the css file.

To do that you need to:

  1. create a .gitattributes file in the root of the project

  2. edit that file and add a line to ignore the css language file

    *.css linguist-detectable=false
    *.js linguist-detectable=true

  3. add, commit and push to remote and see the result

With this 3 steps you can ignore detection for a specific languages. You can also add more attributes, for example something…

Replies: 6 comments 7 replies

Comment options

You must be logged in to vote
1 reply
@MUHAMMADTAHIR1122
Comment options

Comment options

You must be logged in to vote
5 replies
@pankajAdhikari2002
Comment options

@kingp08
Comment options

@Ayu85
Comment options

@itsAbdullahMaqsood
Comment options

@raufzer
Comment options

Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@nextwor1d
Comment options

Comment options

You must be logged in to vote
0 replies
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
Labels
None yet