git-lfs/docs/man/git-lfs-post-commit.1.ronn
Chris Darroch ae5d5b09cf docs: add post-commit hook man page
Add a man page for git-lfs-post-commit(1) which largely
parallels the git-lfs-post-merge(1) one, as they have similar
purposes for Git LFS, namely, to ensure all tracked lockable
files are marked read-only in the working copy.
2020-03-02 18:01:29 -08:00

24 lines
755 B
Markdown

git-lfs-post-commit(1) -- Git post-commit hook implementation
=================================================================
## SYNOPSIS
`git lfs post-commit`
## DESCRIPTION
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.
## SEE ALSO
git-lfs-post-merge(1), git-lfs-track(1)
Part of the git-lfs(1) suite.