← 返回命令列表

Linux command

git-locked 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Show locked files

git locked

说明

git locked displays files currently marked as locked. It reads the `.gitlock` file and lists all files that have been locked using `git lock`, providing visibility into which files are currently claimed by team members. This helps avoid conflicts on binary or other non-mergeable files where simultaneous edits would be problematic.

FAQ

What is the git-locked command used for?

git locked displays files currently marked as locked. It reads the `.gitlock` file and lists all files that have been locked using `git lock`, providing visibility into which files are currently claimed by team members. This helps avoid conflicts on binary or other non-mergeable files where simultaneous edits would be problematic.

How do I run a basic git-locked example?

Run `git locked` in a terminal, then adjust file names, paths, flags, or remote targets for your system.