You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While GitHub does shows Git LFS data usage, it only shows the top 5 and hides the rest.
It would be nice to have a daily updated web page and/or a CLI tool that shows our Git LFS data usage across all repos for diagnostics purposes; to estimate the bandwidth usage of repo mirroring or cloning, etc.
$ gh repo list OpenDRR --limit 5 --publicShowing 5 of 35 repositories in @OpenDRR that match your searchOpenDRR/opendrr-api REST API for OpenDRR data / API REST pour les données OpenDRR public 1hOpenDRR/model-factory OpenQuake compilation and data manipulation scripts public 11hOpenDRR/python-env Docker image for Linux based python environment public 4dOpenDRR/riskprofiler Web Application to Support Disaster Resilience / Application web pour soutenir la résilience aux catastrophes public 5dOpenDRR/boundaries Boundary geometries for model results in Geopackage format. public 5d
Mini HOWTOs
To get a list of all our repos (including private and archived ones):
gh repo list OpenDRR --limit 200 | cut -f1
(or borrow from @DamonU2's work on #125 where direct API call is used.)
For each repo (using OpenDRR/boundaries as example):
where the relevant options for git lfs ls-files are:
-d --debug:
Show as much information as possible about a LFS file. This is intended
for manual inspection; the exact format may change at any time.
-a --all:
Inspects the full history of the repository, not the current HEAD (or other
provided reference). This will include previous versions of LFS objects that
are no longer found in the current tree.
There is also https://github.com/github/git-sizer which "[c]ompute[s] various size metrics for a Git repository, flagging those that might cause problems".
The text was updated successfully, but these errors were encountered:
While GitHub does shows Git LFS data usage, it only shows the top 5 and hides the rest.
It would be nice to have a daily updated web page and/or a CLI tool that shows our Git LFS data usage across all repos for diagnostics purposes; to estimate the bandwidth usage of repo mirroring or cloning, etc.
Mini HOWTOs
To get a list of all our repos (including private and archived ones):
gh repo list OpenDRR --limit 200 | cut -f1
(or borrow from @DamonU2's work on #125 where direct API call is used.)
For each repo (using OpenDRR/boundaries as example):
To clone a repo without checking out LFS files:
To sum up LFS data storage usage for all files in the repo:
where the relevant options for
git lfs ls-files
are:The
20.50G
figure matches that reported by GitLab at https://gitlab.com/groups/OpenDRR/-/usage_quotas#storage-quota-tab. It is actually 20.50 GiB (10243). Whennumfmt --to=si
is used, it is 22.01 GB (10003).While
git lfs ls-files --size
also gives size information, it is given in human-readable form (e.g.2.5 GB
and thus not as precise.Credit (for the use of
paste
,bc
andnumfmt
): linux - Sum up numbers with KB/MB/GB/TB/PB... suffixes - Unix & Linux Stack ExchangeFor the size of the Git repo itself without counting LFS storage:
Credit: https://stackoverflow.com/questions/8646517/how-can-i-see-the-size-of-a-github-repository-before-cloning-it
There is also https://github.com/github/git-sizer which "[c]ompute[s] various size metrics for a Git repository, flagging those that might cause problems".
The text was updated successfully, but these errors were encountered: