git-lfs-post-commit(1)

git-lfs-post-commit1

Git post-commit hook implementation

Usage

git lfs post-commit

Overview

Responds to Git post-commit events. It makes sure that any files which are marked as lockable by git lfs track are read-only in the working copy, if not currently locked by the local user.

Where the git lfs post-merge command, which has a similar purpose, must examine all files in the working copy, git lfs post-commit can limit itself checking only those files which have changed in HEAD. It primarily handles newly added lockable files which have not yet been made read-only.

Releases

4 releases since Debian 11 (Bullseye); the text changed 3 times.

  1. 11
  2. 12
  3. 13
  4. Arch

From git-lfs 3.8.1-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.