Git LFS "lfs.locksverify" locking not supported in CI
On push, LFS notices the remote advertises file locking and asks whether to verify locks. In CI, where nobody can answer, the push either warns repeatedly or fails; the fix is to set lfs.locksverify explicitly.
What this error means
A push prints "Locking support detected on remote \"origin\". Consider enabling it with: git config lfs.locksverify true" or fails when lock verification cannot be satisfied.
Locking support detected on remote "origin". Consider enabling it with:
$ git config lfs.locksverify true
Remote "origin" does not support the Git LFS locking API. Consider disabling it with:
$ git config lfs.locksverify falseCommon causes
Lock verification is left unset in CI
With lfs.locksverify unconfigured, LFS emits the advisory on every push, and a strict setting can block the push if it cannot verify locks.
The remote does not implement the locking API
When the server lacks lock support, verification requests have nothing to answer, producing the "does not support" variant.
How to fix it
Set locksverify explicitly
- Decide whether the workflow uses LFS file locking.
- Set
git config lfs.locksverify trueto enforce, orfalseto silence the advisory. - Commit the choice to
.lfsconfigso every clone inherits it.
git config lfs.locksverify falsePersist the setting in .lfsconfig
Store the decision in the repo so CI clones do not re-prompt on each push.
[lfs]
locksverify = falseHow to prevent it
- Set
lfs.locksverifyexplicitly for CI push jobs. - Commit the value in
.lfsconfigfor consistency. - Only enable locking when the team actually uses LFS locks.