Feature request: can GitHub API show repo size including git-lfs

Currently, the repo size shown in GitHub API does not include git-lfs. As a feature request, can GitHub API also show the repo size including git-lfs? I wish to let other users easily know how large the repo is with the git-lfs files, perhaps as a badge from shields.io.

Related post: Git LFS, does Github repo size include them?

Related issue on badges/shields


Hi @packardchan,

Thanks for this feedback! We’re always working to improve GitHub and the GitHub Community Forum, and we consider every suggestion we receive. I’ve logged your feature request in our internal feature request list. Though I can’t guarantee anything or share a timeline for this, I can tell you that it’s been shared with the appropriate teams for consideration.


+1, LFS is burning my group - we eventually found 4 repos that are just massive users of LFS.

Would also appreciate being able to turn off LFS on the org or repo level.

1 Like

We’re experiencing the same problems. We’re having a lot of repostiories and finding the repository which consumes a lot of LFS bandwith and storage is virtually impossible.

A way of showing the LFS usage in repositories in ui or API and an abbility to turn off LFS on org level would be great.

It would be great if we can query for which repositories use git lfs.

Currently I do see the v4 api has support for submodules. This feature according to the tooltip in my Graphql editor is checking the .submodules file in the repository.

To add the capability of checking which repo uses git lfs should be fairly similar to implement by checking for the .gitattributes file.

Would be highly appreciated this will be implemented on the short term.

I have also seen a similar issue here https://github.community/t5/GitHub-API-Development-and/Repository-API-for-LFS-usage/m-p/18780/highlight/false#M866 to have it enabled on the v3 api.