git-lfs-push1
Push queued large files to the git lfs endpoint
Usage
git lfs
push
[options]
<remote>
[<ref> ...]
git lfs
push
<remote>
[<ref> ...]
git lfs
push
[options]
<remote>
--stdin
git lfs
push
--object-id
<remote>
[<oid> ...]
git lfs
push
--object-id
<remote>
--stdin
Overview
Upload Git LFS files to the configured endpoint for the current Git remote. By default, it filters out objects that are already referenced by the local clone of the remote.
Options
-
-d,--dry-run -
Print the files that would be pushed, without actually pushing them.
-
-a,--all -
This pushes all objects to the remote that are referenced by any commit reachable from the refs provided as arguments. If no refs are provided, then all local refs are pushed. Note that this behavior differs from that of git-lfs-fetch(1) when its
--alloption is used; in that case, all refs are fetched, including refs other than those underrefs/headsandrefs/tags. If you are migrating a repository with these commands, make sure to rungitlfs pushfor any additional remote refs that contain Git LFS objects not reachable from your local refs.
-
-o,--object-id -
This pushes only the object OIDs listed at the end of the command, separated by spaces.
-
--stdin -
Read a list of newline-delimited refs (or object IDs when using
--object-id) from standard input instead of the command line.
Releases
5 releases since Debian 10 (Buster); the text changed 4 times.
--stdin since Debian 12 (Bookworm);
-a since Arch Linux 2026-11-01;
-d since Arch Linux 2026-11-01;
-o since Arch Linux 2026-11-01.