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 | 7c73c66 | 2007-01-19 00:37:50 | [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 | f870ef8 | 2006-07-29 09:10:13 | [diff] [blame] | 11 | '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] | 12 | |
| 13 | DESCRIPTION |
| 14 | ----------- |
| 15 | Downloads a remote git repository via HTTP. |
| 16 | |
| 17 | OPTIONS |
| 18 | ------- |
| 19 | commit-id:: |
| 20 | Either the hash or the filename under [URL]/refs/ to |
| 21 | pull. |
| 22 | |
| 23 | -c:: |
| 24 | Get the commit objects. |
| 25 | -t:: |
| 26 | Get trees associated with the commit objects. |
| 27 | -a:: |
| 28 | Get all the objects. |
| 29 | -v:: |
| 30 | Report what is downloaded. |
| 31 | |
| 32 | -w <filename>:: |
| 33 | Writes the commit-id into the filename under $GIT_DIR/refs/<filename> on |
| 34 | the local end after the transfer is complete. |
| 35 | |
Junio C Hamano | f870ef8 | 2006-07-29 09:10:13 | [diff] [blame] | 36 | --stdin:: |
Junio C Hamano | a638742 | 2007-08-25 03:54:27 | [diff] [blame] | 37 | Instead of a commit id on the command line (which is not expected in this |
Junio C Hamano | f870ef8 | 2006-07-29 09:10:13 | [diff] [blame] | 38 | case), 'git-http-fetch' expects lines on stdin in the format |
| 39 | |
| 40 | <commit-id>['\t'<filename-as-in--w>] |
| 41 | |
Junio C Hamano | 9882a52 | 2007-04-27 08:22:22 | [diff] [blame] | 42 | --recover:: |
| 43 | Verify that everything reachable from target is fetched. Used after |
| 44 | an earlier fetch is interrupted. |
| 45 | |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 46 | Author |
| 47 | ------ |
| 48 | Written by Linus Torvalds <torvalds@osdl.org> |
| 49 | |
| 50 | Documentation |
| 51 | -------------- |
| 52 | Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel.org>. |
| 53 | |
| 54 | GIT |
| 55 | --- |
Junio C Hamano | 35738e8 | 2008-01-07 07:55:46 | [diff] [blame] | 56 | Part of the linkgit:git[7] suite |