Junio C Hamano | 215a7ad | 2005-09-07 17:26:23 -0700 | [diff] [blame] | 1 | git-http-fetch(1) |
| 2 | ================= |
David Greaves | 2cf565c | 2005-05-10 22:32:30 +0100 | [diff] [blame] | 3 | |
| 4 | NAME |
| 5 | ---- |
Junio C Hamano | c3f0baa | 2007-01-18 15:53:37 -0800 | [diff] [blame] | 6 | git-http-fetch - Download from a remote git repository via HTTP |
David Greaves | 2cf565c | 2005-05-10 22:32:30 +0100 | [diff] [blame] | 7 | |
| 8 | |
| 9 | SYNOPSIS |
| 10 | -------- |
Jonathan Nieder | b1889c3 | 2008-06-30 01:09:04 -0500 | [diff] [blame] | 11 | 'git http-fetch' [-c] [-t] [-a] [-d] [-v] [-w filename] [--recover] [--stdin] <commit> <url> |
David Greaves | 2cf565c | 2005-05-10 22:32:30 +0100 | [diff] [blame] | 12 | |
| 13 | DESCRIPTION |
| 14 | ----------- |
Christian Meder | 72e9340 | 2005-10-10 16:01:31 -0700 | [diff] [blame] | 15 | Downloads a remote git repository via HTTP. |
David Greaves | 2cf565c | 2005-05-10 22:32:30 +0100 | [diff] [blame] | 16 | |
Nikolai Weibull | 5dd7342 | 2005-12-09 00:28:05 +0100 | [diff] [blame] | 17 | OPTIONS |
| 18 | ------- |
| 19 | commit-id:: |
| 20 | Either the hash or the filename under [URL]/refs/ to |
| 21 | pull. |
| 22 | |
David Greaves | 2cf565c | 2005-05-10 22:32:30 +0100 | [diff] [blame] | 23 | -c:: |
| 24 | Get the commit objects. |
| 25 | -t:: |
| 26 | Get trees associated with the commit objects. |
| 27 | -a:: |
| 28 | Get all the objects. |
David Greaves | 2cf565c | 2005-05-10 22:32:30 +0100 | [diff] [blame] | 29 | -v:: |
| 30 | Report what is downloaded. |
Johannes Schindelin | 2c6e477 | 2005-08-05 17:05:02 +0200 | [diff] [blame] | 31 | |
| 32 | -w <filename>:: |
| 33 | Writes the commit-id into the filename under $GIT_DIR/refs/<filename> on |
Junio C Hamano | 613d872 | 2005-06-25 02:25:57 -0700 | [diff] [blame] | 34 | the local end after the transfer is complete. |
David Greaves | 2cf565c | 2005-05-10 22:32:30 +0100 | [diff] [blame] | 35 | |
Petr Baudis | 8e29f6a | 2006-07-27 23:56:22 +0200 | [diff] [blame] | 36 | --stdin:: |
Brian Hetro | 0278307 | 2007-08-23 20:44:13 -0400 | [diff] [blame] | 37 | Instead of a commit id on the command line (which is not expected in this |
Jonathan Nieder | ba020ef | 2008-07-03 00:41:41 -0500 | [diff] [blame] | 38 | case), 'git-http-fetch' expects lines on stdin in the format |
Petr Baudis | 8e29f6a | 2006-07-27 23:56:22 +0200 | [diff] [blame] | 39 | |
| 40 | <commit-id>['\t'<filename-as-in--w>] |
| 41 | |
Andrew Ruder | 71e2e59 | 2007-04-26 23:59:02 -0500 | [diff] [blame] | 42 | --recover:: |
| 43 | Verify that everything reachable from target is fetched. Used after |
| 44 | an earlier fetch is interrupted. |
| 45 | |
David Greaves | 2cf565c | 2005-05-10 22:32:30 +0100 | [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 | --- |
Christian Couder | 9e1f0a8 | 2008-06-06 09:07:32 +0200 | [diff] [blame] | 56 | Part of the linkgit:git[1] suite |