New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modifying .gitattributes to ignore .html files has no effect #4769
Comments
It is 100% true 😁 As per the README.md:
If we look at the breakdown by size we see: HTML 22.7 MB So why is HTML so high when you're not expecting it? Because these two bad boys are massive (your entire repo is surprisingly big too):
So why aren't your For a couple of reasons:
If you really don't want any HTML files to be considered, then you need to cater for all the paths and all the extensions and ensure the attribute is correctly spelt. If the content of the two |
@lildude - Thank you for catching the typos. I have corrected those but am still noticing the percentages no updating:
Shouldn't' that eliminate any directories or subdirectories being included in linguist's stats? |
Should have read the docs better...committed and now have a much better percentage. Sorry for confusion and thanks for help! |
@brymon68 do you happen to remember what is it that you did that solved that issue for you? |
Hi! Thank you so much guys , I came here and my problem was solved . |
just create .gitattributes in the root folder of your repository, and give it these contents:
This example tells GitHub/Linguist to ignore all files and look at .js files. You can also add another language you want as long as the format files are included in your repository |
Preliminary Steps / Problem Description
I have the following public repo: https://github.com/sandialabs/scot
Our git repo says it is 51.8% html which is not true. Our .gitattributes file looks like:
Yet there are no changes to the percentages. I want HTML fully removed from our percentage makeup. Any ideas how we can accomplish this? I have tried the github-linguist package on Ubuntu as well and no matter what combination .I used, I cant get percentages to change. For instance I also tried:
Please confirm you have...
URL of the affected repository:
https://github.com/sandialabs/scot
Last modified on:
01/14/2020
Expected language:
Javascript / Perl
Detected language:
HTML / Javascript
The text was updated successfully, but these errors were encountered: