Skip to content
Everyday Git

Git LFS

Status, missing-object accounting, read-only lock visibility, and fetching LFS objects.

Status, computed locally

LFS status starts by asking whether git lfs is actually available for this repository; if it is not, the answer is “not enabled” rather than an error. Tracked patterns are read from the lines in your repository’s root .gitattributes that carry filter=lfs.

Missing-object accounting is more careful than it looks. The pointer text is read from the index, not from the working tree, because a worktree file has already been smudged and is no longer a pointer. For each pointer, the app looks for the corresponding object in the repository’s local LFS object store and counts the ones that are not there. “Missing” therefore means something precise: a pointer exists and its object is gone.

Locks are read-only, and read from cache

Locks are listed with the path and the owner, so you can see who holds one. They come from git lfs locks --cached (the most recently cached response) deliberately, because a plain lock listing is a network request and opening a repository must not depend on a remote host being reachable.

GitAegis never takes a lock and never breaks one

Lock visibility is exactly that: visibility. There is no take-lock and no force-unlock in this build. A repository with no local lock cache yet shows no locks, which is honest rather than empty-because-of-an-error.

Fetching missing objects

Fetching is caution and has two preconditions that are checked against your repository first: that Git LFS is available, and that at least one object is genuinely missing locally. It runs as four steps, and the last two are the ones worth noticing.

planned commands
git lfs install --local
git lfs pull
git lfs fsck --objects
Followed by a checkout step that materialises only unmodified, eligible pointer files.

A successful transfer is not accepted as proof: fsck --objects hashes every stored object before the operation is allowed to report success. The checkout step deliberately does not force content over modified files or sparse-excluded paths, and no ref, commit or index entry is changed by any of this.

What the preview cannot tell you

The plan does not contact the LFS server

Remote availability, credentials, object access, transfer size, transfer success and object integrity are execution-time facts. The preview says so and labels its confidence advisory rather than implying it checked. The local status read stays local by design. It can prove your checkout is missing objects without probing anything.

No checkpoint, no rollback, no cancel once started

A checkpoint does not capture the LFS object cache and cannot reverse a clean LFS checkout, so none is taken and the plan states that instead of offering a rollback. A successful download stays in the local cache; a failed transfer can leave reusable partial cache data. The transfer itself is non-cancellable once dispatched, and the Activity surface hides cancellation at that point rather than showing a button that would do nothing.

One thing worth carrying into recovery: LFS is a .gitattributes filter, and Git applies filters whenever working-tree content is written, including during a capsule restore. That is Git’s own path and is not switchable off from a client.

30-day trial · No card required

A recovery capsule before every risky Git operation.

You see the exact commands before they run, and the operation is refused if the capsule cannot be written.

Requires Git 2.38.0 or newer, already installed.

Every risky operation, in this order

  1. Previewthe exact commands, shown before anything runs
  2. Capsulerefs, index, staged and working changes, untracked files, operation state: written to disk first
  3. Executethe commands as shown, or not at all
  4. Journalplan, commands, capsule id, outcome
No capsule, no operation. Restore plans, previews, and takes its own capsule.