blob: e7c796155fdd0ad644decf5dc488c6d780a2d164 [file] [log] [blame]
Junio C Hamano215a7ad2005-09-07 17:26:23 -07001git-http-fetch(1)
2=================
David Greaves2cf565c2005-05-10 22:32:30 +01003
4NAME
5----
Junio C Hamanoc3f0baa2007-01-18 15:53:37 -08006git-http-fetch - Download from a remote git repository via HTTP
David Greaves2cf565c2005-05-10 22:32:30 +01007
8
9SYNOPSIS
10--------
Jonathan Niederb1889c32008-06-30 01:09:04 -050011'git http-fetch' [-c] [-t] [-a] [-d] [-v] [-w filename] [--recover] [--stdin] <commit> <url>
David Greaves2cf565c2005-05-10 22:32:30 +010012
13DESCRIPTION
14-----------
Christian Meder72e93402005-10-10 16:01:31 -070015Downloads a remote git repository via HTTP.
David Greaves2cf565c2005-05-10 22:32:30 +010016
Nikolai Weibull5dd73422005-12-09 00:28:05 +010017OPTIONS
18-------
19commit-id::
20 Either the hash or the filename under [URL]/refs/ to
21 pull.
22
David Greaves2cf565c2005-05-10 22:32:30 +010023-c::
24 Get the commit objects.
25-t::
26 Get trees associated with the commit objects.
27-a::
28 Get all the objects.
David Greaves2cf565c2005-05-10 22:32:30 +010029-v::
30 Report what is downloaded.
Johannes Schindelin2c6e4772005-08-05 17:05:02 +020031
32-w <filename>::
33 Writes the commit-id into the filename under $GIT_DIR/refs/<filename> on
Junio C Hamano613d8722005-06-25 02:25:57 -070034 the local end after the transfer is complete.
David Greaves2cf565c2005-05-10 22:32:30 +010035
Petr Baudis8e29f6a2006-07-27 23:56:22 +020036--stdin::
Brian Hetro02783072007-08-23 20:44:13 -040037 Instead of a commit id on the command line (which is not expected in this
Jonathan Niederba020ef2008-07-03 00:41:41 -050038 case), 'git-http-fetch' expects lines on stdin in the format
Petr Baudis8e29f6a2006-07-27 23:56:22 +020039
40 <commit-id>['\t'<filename-as-in--w>]
41
Andrew Ruder71e2e592007-04-26 23:59:02 -050042--recover::
43 Verify that everything reachable from target is fetched. Used after
44 an earlier fetch is interrupted.
45
David Greaves2cf565c2005-05-10 22:32:30 +010046Author
47------
48Written by Linus Torvalds <torvalds@osdl.org>
49
50Documentation
51--------------
52Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel.org>.
53
54GIT
55---
Christian Couder9e1f0a82008-06-06 09:07:32 +020056Part of the linkgit:git[1] suite