]> git.ipfire.org Git - thirdparty/git.git/blob - Documentation/git-upload-pack.txt
clone: allow "--bare" with "-o"
[thirdparty/git.git] / Documentation / git-upload-pack.txt
1 git-upload-pack(1)
2 ==================
3
4 NAME
5 ----
6 git-upload-pack - Send objects packed back to git-fetch-pack
7
8
9 SYNOPSIS
10 --------
11 [verse]
12 'git-upload-pack' [--[no-]strict] [--timeout=<n>] [--stateless-rpc]
13 [--advertise-refs] <directory>
14
15 DESCRIPTION
16 -----------
17 Invoked by 'git fetch-pack', learns what
18 objects the other side is missing, and sends them after packing.
19
20 This command is usually not invoked directly by the end user.
21 The UI for the protocol is on the 'git fetch-pack' side, and the
22 program pair is meant to be used to pull updates from a remote
23 repository. For push operations, see 'git send-pack'.
24
25 OPTIONS
26 -------
27
28 --[no-]strict::
29 Do not try <directory>/.git/ if <directory> is no Git directory.
30
31 --timeout=<n>::
32 Interrupt transfer after <n> seconds of inactivity.
33
34 --stateless-rpc::
35 Perform only a single read-write cycle with stdin and stdout.
36 This fits with the HTTP POST request processing model where
37 a program may read the request, write a response, and must exit.
38
39 --http-backend-info-refs::
40 Used by linkgit:git-http-backend[1] to serve up
41 `$GIT_URL/info/refs?service=git-upload-pack` requests. See
42 "Smart Clients" in link:technical/http-protocol.html[the HTTP
43 transfer protocols] documentation and "HTTP Transport" in
44 link:technical/protocol-v2.html[the Git Wire Protocol, Version
45 2] documentation. Also understood by
46 linkgit:git-receive-pack[1].
47
48 <directory>::
49 The repository to sync from.
50
51 ENVIRONMENT
52 -----------
53
54 `GIT_PROTOCOL`::
55 Internal variable used for handshaking the wire protocol. Server
56 admins may need to configure some transports to allow this
57 variable to be passed. See the discussion in linkgit:git[1].
58
59 SEE ALSO
60 --------
61 linkgit:gitnamespaces[7]
62
63 GIT
64 ---
65 Part of the linkgit:git[1] suite