blob: 7ad60bc3485bc80606fbf38bb13a4ba0e8f0902e [file] [log] [blame]
Junio C Hamano1a4e8412005-12-27 08:17:231git-upload-pack(1)
2==================
3
4NAME
5----
Junio C Hamano7c73c662007-01-19 00:37:506git-upload-pack - Send objects packed back to git-fetch-pack
Junio C Hamano1a4e8412005-12-27 08:17:237
8
9SYNOPSIS
10--------
Junio C Hamano15567bc2011-07-23 00:51:5911[verse]
Junio C Hamanofedb1b42016-06-20 21:23:4012'git-upload-pack' [--[no-]strict] [--timeout=<n>] [--stateless-rpc]
13 [--advertise-refs] <directory>
Junio C Hamano94d00a52018-10-30 07:34:4014
Junio C Hamano1a4e8412005-12-27 08:17:2315DESCRIPTION
16-----------
Junio C Hamano1aa40d22010-01-21 17:46:4317Invoked by 'git fetch-pack', learns what
Junio C Hamano1a4e8412005-12-27 08:17:2318objects the other side is missing, and sends them after packing.
19
20This command is usually not invoked directly by the end user.
Junio C Hamano1aa40d22010-01-21 17:46:4321The UI for the protocol is on the 'git fetch-pack' side, and the
Junio C Hamano1a4e8412005-12-27 08:17:2322program pair is meant to be used to pull updates from a remote
Junio C Hamano1aa40d22010-01-21 17:46:4323repository. For push operations, see 'git send-pack'.
Junio C Hamano1a4e8412005-12-27 08:17:2324
Junio C Hamano1a4e8412005-12-27 08:17:2325OPTIONS
26-------
Junio C Hamanoaa83a7d2007-03-05 02:37:2927
Junio C Hamanofedb1b42016-06-20 21:23:4028--[no-]strict::
Junio C Hamano33be8212023-10-23 21:45:5429Do not try <directory>/.git/ if <directory> is not a Git directory.
Junio C Hamanoaa83a7d2007-03-05 02:37:2930
Junio C Hamanoeb415992008-06-08 22:49:4731--timeout=<n>::
Junio C Hamanoaa83a7d2007-03-05 02:37:2932Interrupt transfer after <n> seconds of inactivity.
33
Junio C Hamanofedb1b42016-06-20 21:23:4034--stateless-rpc::
35Perform only a single read-write cycle with stdin and stdout.
36This fits with the HTTP POST request processing model where
37a program may read the request, write a response, and must exit.
38
Junio C Hamanode44de32021-09-20 22:46:0839--http-backend-info-refs::
40Used by linkgit:git-http-backend[1] to serve up
41`$GIT_URL/info/refs?service=git-upload-pack` requests. See
Junio C Hamano04495a12022-08-18 21:13:0842"Smart Clients" in linkgit:gitprotocol-http[5] and "HTTP
Junio C Hamano3778ccc2022-09-15 23:33:1743Transport" in the linkgit:gitprotocol-v2[5]
Junio C Hamano04495a12022-08-18 21:13:0844documentation. Also understood by
Junio C Hamanode44de32021-09-20 22:46:0845linkgit:git-receive-pack[1].
Junio C Hamanofedb1b42016-06-20 21:23:4046
Junio C Hamano1a4e8412005-12-27 08:17:2347<directory>::
48The repository to sync from.
49
Junio C Hamanoeb4d5672021-09-23 21:35:5450ENVIRONMENT
51-----------
52
53`GIT_PROTOCOL`::
54Internal variable used for handshaking the wire protocol. Server
55admins may need to configure some transports to allow this
56variable to be passed. See the discussion in linkgit:git[1].
57
Junio C Hamanof7279012011-08-18 06:13:1358SEE ALSO
59--------
60linkgit:gitnamespaces[7]
61
Junio C Hamano1a4e8412005-12-27 08:17:2362GIT
63---
Junio C Hamanof7c042d2008-06-06 22:50:5364Part of the linkgit:git[1] suite