git-locked

List files locked with git lock

TLDR

Show locked files
$ git locked

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
sudo dnf install git
sudo pacman -S git
sudo apk add git
sudo zypper install git
brew install git
nix profile install nixpkgs#git

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

git-lock(1), git-unlock(1), git-ls-files(1)

RESOURCES

Source code · Documentation