GIT-LFS-LOCK(1)
β¨ NAME β¨
git-lfs-lock β set a file as βlockedβ on the Git LFS server.
This is the GIT-LFS-LOCK(1) page, bestie. Weβre locking files today. πβ¨
π SYNOPSIS π
git lfs lock [options] <path>
π¦ DESCRIPTION π¦
Okay so git lfs lock takes your <path> and marks it as βlockedβ on the Git LFS server. The whole point? Blocking attempts by other users to update that path. Iconic boundary-setting behavior, honestly. π
Lowkey important: locking a file requires the file to exist in the working copy. No phantom files, bestie. π«Ά
Once itβs locked, LFS will verify that Git pushes do not modify files locked by other users. For the full tea, see the description of the lfs.<url>.locksverify config key in git-lfs-config(5). π
π OPTIONS π
-r <name>,--remote=<name>β specifies the Git LFS server to use. This is ignored if thelfs.urlconfig key is set. Periodt. π-j,--jsonβ writes lock info asJSONtoSTDOUTif the command exits successfully. Itβs intended for interoperation with external tools. If the command returns with a non-zero exit code, plain text messages will be sent toSTDERR. Thatβs the vibe check. β¨
π SEE ALSO π
Part of the git-lfs(1) suite. π«Ά
Signed off from the git-lfs(1) suite β page GIT-LFS-LOCK(1), with no separate version/date line on this one. Thatβs the footer tea, bestie ππ
π¦ 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