]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/git-http-fetch.txt
Merge branch 'en/fetch-negotiation-default-fix'
[thirdparty/git.git] / Documentation / git-http-fetch.txt
CommitLineData
215a7ad1
JH
1git-http-fetch(1)
2=================
2cf565c5
DG
3
4NAME
5----
2de9b711 6git-http-fetch - Download from a remote Git repository via HTTP
2cf565c5
DG
7
8
9SYNOPSIS
10--------
7791a1d9 11[verse]
7706294e 12'git http-fetch' [-c] [-t] [-a] [-d] [-v] [-w <filename>] [--recover] [--stdin | --packfile=<hash> | <commit>] <URL>
2cf565c5
DG
13
14DESCRIPTION
15-----------
2de9b711 16Downloads a remote Git repository via HTTP.
2cf565c5 17
2e85a0c8
18This command always gets all objects. Historically, there were three options
19`-a`, `-c` and `-t` for choosing which objects to download. They are now
20silently ignored.
a6c786fc 21
5dd73421
NW
22OPTIONS
23-------
24commit-id::
25 Either the hash or the filename under [URL]/refs/ to
26 pull.
27
2e85a0c8
28-a, -c, -t::
29 These options are ignored for historical reasons.
2cf565c5
DG
30-v::
31 Report what is downloaded.
2c6e4771
JS
32
33-w <filename>::
34 Writes the commit-id into the filename under $GIT_DIR/refs/<filename> on
613d872c 35 the local end after the transfer is complete.
2cf565c5 36
8e29f6a0 37--stdin::
02783075 38 Instead of a commit id on the command line (which is not expected in this
0b444cdb 39 case), 'git http-fetch' expects lines on stdin in the format
8e29f6a0
PB
40
41 <commit-id>['\t'<filename-as-in--w>]
42
8d5d2a34 43--packfile=<hash>::
27e35ba6
JT
44 For internal use only. Instead of a commit id on the command
45 line (which is not expected in
8d5d2a34
JT
46 this case), 'git http-fetch' fetches the packfile directly at the given
47 URL and uses index-pack to generate corresponding .idx and .keep files.
48 The hash is used to determine the name of the temporary file and is
27e35ba6
JT
49 arbitrary. The output of index-pack is printed to stdout. Requires
50 --index-pack-args.
51
52--index-pack-args=<args>::
53 For internal use only. The command to run on the contents of the
54 downloaded pack. Arguments are URL-encoded separated by spaces.
8d5d2a34 55
71e2e599
AR
56--recover::
57 Verify that everything reachable from target is fetched. Used after
58 an earlier fetch is interrupted.
59
2cf565c5
DG
60GIT
61---
9e1f0a85 62Part of the linkgit:git[1] suite