Debian Codegraph @

docs/man/git-lfs-pre-push.adoc

raw
1 = git-lfs-pre-push(1)
2
3 == NAME
4
5 git-lfs-pre-push - Git pre-push hook implementation
6
7 == SYNOPSIS
8
9 [source,role=synopsis,subs="verbatim,quotes"]
10 ----
11 *git lfs pre-push* _<remote>_ [_remoteurl_]
12 ----
13
14 == DESCRIPTION
15
16 Responds to Git pre-hook events. It reads the range of commits from
17 STDIN, in the following format:
18
19 ....
20 <local-ref> SP <local-sha1> SP <remote-ref> SP <remote-sha1> \n
21 ....
22
23 It also takes the remote name and URL as arguments.
24
25 If any of those Git objects are associated with Git LFS objects, those
26 objects will be pushed to the Git LFS API.
27
28 In the case of pushing a new branch, the list of Git objects will be all
29 of the Git objects in this branch.
30
31 In the case of deleting a branch, no attempts to push Git LFS objects
32 will be made.
33
34 == OPTIONS
35
36 `-d`::
37 `--dry-run`::
38 Print the files that would be pushed, without actually pushing them.
39 `GIT_LFS_SKIP_PUSH`::
40 Do nothing on pre-push. For more information, see git-lfs-config(5).
41
42 == SEE ALSO
43
44 git-lfs-clean(1), git-lfs-push(1).
45
46 Part of the git-lfs(1) suite.