GIT-LFS-PRE-PUSH(1)
π NAME π
git-lfs-pre-push β Git pre-push hook implementation. Hii bestie, welcome to the GIT-LFS-PRE-PUSH(1) manual page β yes, this is the git-lfs pre-push hook page, and itβs lowkey iconic. π
β¨ SYNOPSIS β¨
Run it like this, no cap:
git lfs pre-push <remote> [remoteurl]
π¦ DESCRIPTION π¦
It responds to Git pre-hook events. It reads the range of commits from STDIN, in this exact format:
<local-ref> SP <local-sha1> SP <remote-ref> SP <remote-sha1> \n
It also takes the remote name and URL as arguments.
If any of those Git objects are associated with Git LFS objects, those objects will be pushed to the Git LFS API. The way that works is very much giving βLFS handles its business.β π
In the case of pushing a new branch, the list of Git objects will be all of the Git objects in this branch. In the case of deleting a branch, no attempts to push Git LFS objects will be made β literally none, periodt.
π OPTIONS π
-d,--dry-runβ Print the files that would be pushed, without actually pushing them. Itβs a preview era, bestie. πGIT_LFS_SKIP_PUSHβ Do nothing on pre-push. For more information, seegit-lfs-config(5).
π SEE ALSO π
Part of the git-lfs(1) suite.
Sign-off time: the footer in the source is just GIT-LFS-PRE-PUSH(1) again, with no source/version or date attached, so Iβm not inventing either β just sending you off with the vibes and the facts intact. Stay slay, bestie. πβ¨π«Ά
π¦ where this page comes from
- arch rolling: git-lfs 3.8.1-1 Β· MIT
- nixos 26.05: git-lfs 3.8.1
- nixpkgs unstable: git-lfs 3.8.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms