Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1 | git-http-fetch(1) |
| 2 | ================= |
| 3 | |
| 4 | NAME |
| 5 | ---- |
Junio C Hamano | 076ffcc | 2013-02-06 05:13:21 | [diff] [blame] | 6 | git-http-fetch - Download from a remote Git repository via HTTP |
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 | fce7c7e | 2008-07-02 03:06:38 | [diff] [blame] | 12 | 'git http-fetch' [-c] [-t] [-a] [-d] [-v] [-w filename] [--recover] [--stdin] <commit> <url> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 13 | |
| 14 | DESCRIPTION |
| 15 | ----------- |
Junio C Hamano | 076ffcc | 2013-02-06 05:13:21 | [diff] [blame] | 16 | Downloads a remote Git repository via HTTP. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 17 | |
Junio C Hamano | 6e41cb3 | 2011-08-29 07:12:49 | [diff] [blame] | 18 | *NOTE*: use of this command without -a is deprecated. The -a |
| 19 | behaviour will become the default in a future release. |
| 20 | |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 21 | OPTIONS |
| 22 | ------- |
| 23 | commit-id:: |
| 24 | Either the hash or the filename under [URL]/refs/ to |
| 25 | pull. |
| 26 | |
| 27 | -c:: |
| 28 | Get the commit objects. |
| 29 | -t:: |
| 30 | Get trees associated with the commit objects. |
| 31 | -a:: |
| 32 | Get all the objects. |
| 33 | -v:: |
| 34 | Report what is downloaded. |
| 35 | |
| 36 | -w <filename>:: |
| 37 | Writes the commit-id into the filename under $GIT_DIR/refs/<filename> on |
| 38 | the local end after the transfer is complete. |
| 39 | |
Junio C Hamano | f870ef8 | 2006-07-29 09:10:13 | [diff] [blame] | 40 | --stdin:: |
Junio C Hamano | a638742 | 2007-08-25 03:54:27 | [diff] [blame] | 41 | Instead of a commit id on the command line (which is not expected in this |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 42 | case), 'git http-fetch' expects lines on stdin in the format |
Junio C Hamano | f870ef8 | 2006-07-29 09:10:13 | [diff] [blame] | 43 | |
| 44 | <commit-id>['\t'<filename-as-in--w>] |
| 45 | |
Junio C Hamano | 9882a52 | 2007-04-27 08:22:22 | [diff] [blame] | 46 | --recover:: |
| 47 | Verify that everything reachable from target is fetched. Used after |
| 48 | an earlier fetch is interrupted. |
| 49 | |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 50 | GIT |
| 51 | --- |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [diff] [blame] | 52 | Part of the linkgit:git[1] suite |