t5-small / man /git-lfs-pre-push.1
khanglam7012's picture
Initial commit
353e225
raw
history blame
1.08 kB
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "GIT\-LFS\-PRE\-PUSH" "1" "October 2021" "" ""
.
.SH "NAME"
\fBgit\-lfs\-pre\-push\fR \- Git pre\-push hook implementation
.
.SH "SYNOPSIS"
\fBgit lfs pre\-push\fR \fIremote\fR [remoteurl]
.
.SH "DESCRIPTION"
Responds to Git pre\-hook events\. It reads the range of commits from STDIN, in the following format:
.
.IP "" 4
.
.nf
<local\-ref> SP <local\-sha1> SP <remote\-ref> SP <remote\-sha1> \en
.
.fi
.
.IP "" 0
.
.P
It also takes the remote name and URL as arguments\.
.
.P
If any of those Git objects are associated with Git LFS objects, those objects will be pushed to the Git LFS API\.
.
.P
In the case of pushing a new branch, the list of Git objects will be all of the Git objects in this branch\.
.
.P
In the case of deleting a branch, no attempts to push Git LFS objects will be made\.
.
.SH "OPTIONS"
.
.TP
\fBGIT_LFS_SKIP_PUSH\fR
Do nothing on pre\-push\. For more, see: git\-lfs\-config(5)\.
.
.SH "SEE ALSO"
git\-lfs\-clean(1), git\-lfs\-push(1)\.
.
.P
Part of the git\-lfs(1) suite\.