Helix Core is now P4. Product user interfaces will be updated soon. Learn more >>

P4 CLI Documentation | 2025.2

# p4 graph lfs-lock (graph)

Create a git lfs-lock.

## Syntax

    p4 graph lfs-lock [-u user ] -n repo -r refpath file

Syntax and naming conventions

## Description

The file path must be a fully-qualified repo path or a path relative to the root of the repo. See "Git LFS" in the Work with Git in P4 Server Administration Documentation.

## Options

Option | Description
--- | ---
`-n` | The name of the repo.
-r | The branch reference.
-u | The user that owns the lock.

## Related commands

To list the git LFS locks in the repo | p4 graph lfs-locks (graph)
To remove a git lfs-lock | p4 graph lfs-unlock (graph)

Your search for returned results