Skip to content

Auditor to see what files in your repo really should be in LFS.

Notifications You must be signed in to change notification settings

zetlen-dandy/git-lfs-audit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Check a repo (probably the orthlyweb repo) for any files that ought to be in LFS but aren't.

Requirements

  • fd (git-respecting find)
  • zx (Node script utility)

On MacOS this is brew install fd zx;

Then, pnpm install.

Usage

% ./bin/git-lfs-audit --repo ../orthlyweb

1.05GB (118 files) over 1M in ../orthlyweb are NOT using LFS.

To list these files, pass the --list-files flag.

Extension  File type            Count  Total size
-------------------------------------------------
.stl       3DS CAD model        1      1.38MB
.xml       XML                  1      1.83MB
.js        JavaScript           1      1.89MB
.yaml      YAML                 1      2.07MB
.wav       audio/wav            1      2.26MB
.svg       SVG image            1      2.72MB
.json      JSON                 3      8.24MB
.jpeg      JPEG image           3      9.13MB
<none>     application/x-elf    1      9.49MB
.ts        TypeScript           5      11.23MB
.sql       SQL                  1      24.76MB
.gif       GIF image            6      38.23MB
.ply       Polygon file format  10     41.47MB
.snap      Jest snapshot        8      52.83MB
.png       PNG image            46     109.13MB
.mp4       MP4 video            5      200.64MB
.zip       Zip archive          24     533.27MB
-------------------------------------------------

Repository performance may improve if they are tracked by LFS instead of checked in raw.

By default, this script considers files over 1MB in size. Use --size to set a different minimum, e.g. --size 500k or --size 10M.

Use --list-files to show the files over the limit instead of the filetype summary.

About

Auditor to see what files in your repo really should be in LFS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published