| 1 |
= git-lfs-post-commit(1) |
| 2 |
|
| 3 |
== NAME |
| 4 |
|
| 5 |
git-lfs-post-commit - Git post-commit hook implementation |
| 6 |
|
| 7 |
== SYNOPSIS |
| 8 |
|
| 9 |
[source,role=synopsis,subs="verbatim,quotes"] |
| 10 |
---- |
| 11 |
*git lfs post-commit* |
| 12 |
---- |
| 13 |
|
| 14 |
== DESCRIPTION |
| 15 |
|
| 16 |
Responds to Git post-commit events. It makes sure that any files which |
| 17 |
are marked as lockable by `git lfs track` are read-only in the working |
| 18 |
copy, if not currently locked by the local user. |
| 19 |
|
| 20 |
Where the `git lfs post-merge` command, which has a similar purpose, |
| 21 |
must examine all files in the working copy, `git lfs post-commit` can |
| 22 |
limit itself checking only those files which have changed in `HEAD`. It |
| 23 |
primarily handles newly added lockable files which have not yet been |
| 24 |
made read-only. |
| 25 |
|
| 26 |
== SEE ALSO |
| 27 |
|
| 28 |
git-lfs-post-merge(1), git-lfs-track(1) |
| 29 |
|
| 30 |
Part of the git-lfs(1) suite. |