Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1 | git-upload-pack(1) |
| 2 | ================== |
| 3 | |
| 4 | NAME |
| 5 | ---- |
Junio C Hamano | 7c73c66 | 2007-01-19 00:37:50 | [diff] [blame] | 6 | git-upload-pack - Send objects packed back to git-fetch-pack |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 7 | |
| 8 | |
| 9 | SYNOPSIS |
| 10 | -------- |
Junio C Hamano | 15567bc | 2011-07-23 00:51:59 | [diff] [blame] | 11 | [verse] |
Junio C Hamano | fedb1b4 | 2016-06-20 21:23:40 | [diff] [blame] | 12 | 'git-upload-pack' [--[no-]strict] [--timeout=<n>] [--stateless-rpc] |
| 13 | [--advertise-refs] <directory> |
Junio C Hamano | 94d00a5 | 2018-10-30 07:34:40 | [diff] [blame] | 14 | |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 15 | DESCRIPTION |
| 16 | ----------- |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 17 | Invoked by 'git fetch-pack', learns what |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 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. |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 21 | The UI for the protocol is on the 'git fetch-pack' side, and the |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 22 | program pair is meant to be used to pull updates from a remote |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 23 | repository. For push operations, see 'git send-pack'. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 24 | |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 25 | OPTIONS |
| 26 | ------- |
Junio C Hamano | aa83a7d | 2007-03-05 02:37:29 | [diff] [blame] | 27 | |
Junio C Hamano | fedb1b4 | 2016-06-20 21:23:40 | [diff] [blame] | 28 | --[no-]strict:: |
Junio C Hamano | 33be821 | 2023-10-23 21:45:54 | [diff] [blame] | 29 | Do not try <directory>/.git/ if <directory> is not a Git directory. |
Junio C Hamano | aa83a7d | 2007-03-05 02:37:29 | [diff] [blame] | 30 | |
Junio C Hamano | eb41599 | 2008-06-08 22:49:47 | [diff] [blame] | 31 | --timeout=<n>:: |
Junio C Hamano | aa83a7d | 2007-03-05 02:37:29 | [diff] [blame] | 32 | Interrupt transfer after <n> seconds of inactivity. |
| 33 | |
Junio C Hamano | fedb1b4 | 2016-06-20 21:23:40 | [diff] [blame] | 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 | |
Junio C Hamano | de44de3 | 2021-09-20 22:46:08 | [diff] [blame] | 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 |
Junio C Hamano | 04495a1 | 2022-08-18 21:13:08 | [diff] [blame] | 42 | "Smart Clients" in linkgit:gitprotocol-http[5] and "HTTP |
Junio C Hamano | 3778ccc | 2022-09-15 23:33:17 | [diff] [blame] | 43 | Transport" in the linkgit:gitprotocol-v2[5] |
Junio C Hamano | 04495a1 | 2022-08-18 21:13:08 | [diff] [blame] | 44 | documentation. Also understood by |
Junio C Hamano | de44de3 | 2021-09-20 22:46:08 | [diff] [blame] | 45 | linkgit:git-receive-pack[1]. |
Junio C Hamano | fedb1b4 | 2016-06-20 21:23:40 | [diff] [blame] | 46 | |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 47 | <directory>:: |
| 48 | The repository to sync from. |
| 49 | |
Junio C Hamano | eb4d567 | 2021-09-23 21:35:54 | [diff] [blame] | 50 | ENVIRONMENT |
| 51 | ----------- |
| 52 | |
| 53 | `GIT_PROTOCOL`:: |
| 54 | Internal variable used for handshaking the wire protocol. Server |
| 55 | admins may need to configure some transports to allow this |
| 56 | variable to be passed. See the discussion in linkgit:git[1]. |
| 57 | |
Junio C Hamano | f727901 | 2011-08-18 06:13:13 | [diff] [blame] | 58 | SEE ALSO |
| 59 | -------- |
| 60 | linkgit:gitnamespaces[7] |
| 61 | |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 62 | GIT |
| 63 | --- |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [diff] [blame] | 64 | Part of the linkgit:git[1] suite |