Vole docs Source

LFS and file locking#

Use Git LFS for large assets and Vole's server-enforced locks for files that cannot be merged. LFS objects use the repository's existing access rules, and writes use the same SSH key as Git pushes.

Before you start#

Install Git LFS on each machine that works with large files:

git lfs install
git lfs version

Clone through the repository's normal URL. Use HTTPS for anonymous, read-only access to a public repository. Use SSH when you need to upload objects or manage locks:

git clone https://forge.example.com/demo.git
git clone ssh://git@forge.example.com/demo.git

No separate LFS token or storage server is required.

Track large files#

From the repository clone, track each filename pattern you want LFS to manage:

git lfs track "*.psd"

git lfs track updates .gitattributes. Commit that file together with the asset, replacing <large-file> with a path such as art/hero.psd:

git add .gitattributes <large-file>
git commit -m "Add the hero art"
git push origin main

Confirm that Git LFS now manages the file:

git lfs ls-files

Vole accepts an LFS upload only from an account that may write the repository. A push containing a pointer whose object was not uploaded is refused, so the resulting commit remains checkoutable. A repository can download only objects referenced by its own history; knowing another object's hash does not grant access to it.

Lock a file before editing#

Lock artwork, audio, models, levels, and other files that cannot be merged:

git lfs lock art/hero.psd
git lfs locks

While the lock exists, Vole rejects any push that changes that path, even from a client with no local hook installed. Current locks also appear on the repository's Locks page at /<repo>/locks.

Unlock the path after committing and pushing your work:

git lfs unlock art/hero.psd

Locks require an SSH remote

The Git LFS client discovers Vole's locking API over SSH. An HTTPS clone can read and fetch objects, but it cannot take or list locks. Use the SSH clone URL, or change origin to that URL, before managing locks.

A repository admin can override a lock, for example after its owner leaves. Vole records the override in data/audit.log. Locks are server state in data/instance.db; they do not travel with clones and are covered by an instance backup.

Configure limits and warnings#

The instance configuration controls two safeguards:

See Set resource limits for the defaults and per-repository storage quotas.

A release source archive contains the stored LFS contents, not pointer files.

Clean up unused objects#

From the instance host, preview garbage collection before removing anything:

vole admin gc --dry-run

Then run it with a grace period that protects recent uploads:

vole admin gc --grace 24h

Vole retains objects reachable from repositories, archived CI logs, and published build artifacts. The grace period protects uploads that have not yet been referenced by a push. CI logs under data/logs/ are ordinary files and are not swept.

Garbage collection can run while people push. Schedule it when storage growth requires it rather than as a mandatory daily job.

Next#

↑↓ to move Enter to open Esc to close