LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

git-locked

List files locked with git lock

TLDR

Show locked files
$ git locked
copy

SYNOPSIS

git locked

DESCRIPTION

git locked, a git-extras command, lists files in the current repository that have been marked with the skip-worktree bit via `git lock`. Internally it runs `git ls-files -v` and filters for entries flagged S, Git's indicator for a skip-worktree file.This gives quick visibility into which locally-tracked files have local-only edits protected from being picked up by `git status`/`git add`, such as machine-specific config files.

INSTALL

sudo apt install git
copy
sudo dnf install git
copy
sudo pacman -S git
copy
sudo apk add git
copy
sudo zypper install git
copy
brew install git
copy
nix profile install nixpkgs#git
copy

CAVEATS

Part of git-extras package, not core Git. Only shows the local, per-clone skip-worktree state, not any lock shared with teammates or a remote.

HISTORY

git locked is part of git-extras, complementing git lock and git unlock.

SEE ALSO

RESOURCES

Copied to clipboard
Kai