GIT-LFS-LS-FILES(1)
π GIT-LFS-LS-FILES(1) β the manual page, but make it make sense
okay so bestie, welcome to the git-lfs-ls-files(1) page π this is your little guide to seeing which files are actually living their LFS life, and fr fr it's gonna be useful β it's part of the git-lfs(1) suite, iykyk.
β¨ NAME β¨
git-lfs-ls-files β shows you the tea β about the Git LFS files chillin' in your index and your working tree. literally just "what's LFS-tracked in here," served fresh.
πΈ SYNOPSIS πΈ
git lfs ls-files [<ref>]
git lfs ls-files <ref> <ref>
π¦ DESCRIPTION π¦
So basically it displays the paths of the Git LFS files it finds in the tree at whatever reference you hand it. no ref given? it just scans the branch you're currently checked out on, easy peasy π
give it two references and it shows you the LFS files that are modified between those two β note that deletions are not listed, so don't come for it when your deleted files ghost you π
also, the little marks at the end? important:
- an asterisk (
*) after the OID means it's a full object β - a minus (
-) means it's an LFS pointer π
π OPTIONS π
-l,--longβ shows the entire 64 character OID instead of just the first 10. go off, full disclosure icon β¨-s,--sizeβ tacks the size of the LFS object onto the end of the line, wrapped in parenthesis. so you can vibe check how chunky it is π-d,--debugβ shows as much info as possible about an LFS file. main character energy, maximum detail. but β this is meant for manual inspection, and the exact format may change at any time, so don't build your whole life around it ok π-a,--allβ inspects the full history of the repository instead of the currentHEAD(or whatever other reference you gave). this means it'll include previous versions of LFS objects that are no longer in the current tree. full lore drop, not just the current episode π--deletedβ shows the full history of the given reference, including objects that have been deleted. it's giving ghost hunting π»-I <paths>,--include=<paths>β include only paths matching these patterns; see[_fetch_settings]π-X <paths>,--exclude=<paths>β exclude paths matching any of these patterns; see[_fetch_settings]πΈ-n,--name-onlyβ shows only the lfs tracked file names. no extras, just names, minimal queen π-j,--jsonβ writes Git LFS file information as JSON toSTDOUTif the command exits successfully. this one's for interop with external tools, so it's the extrovert of the options π«Ά heads up: if--debugis also provided, that option takes precedence. and if any of--long,--size, or--name-onlyare provided, those options will have no effect β rip to them π
π SEE ALSO π
part of the git-lfs(1) suite π
and that's the whole page bestie, no cap π§ this was GIT-LFS-LS-FILES(1) β page one of the git-lfs manual, and the footer's just the same name again because the manual page was being cute and consistent. go find your files, slay, and remember: the OID doesn't lie π
β¨
π¦ where this page comes from
- arch rolling: git-lfs 3.8.1-1 Β· MIT
- nixos 26.05: git-lfs 3.8.1
- nixpkgs unstable: git-lfs 3.8.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms