1GIT-HTTP-FETCH(1) Git Manual GIT-HTTP-FETCH(1)
2
3
4
6 git-http-fetch - Download from a remote Git repository via HTTP
7
9 git http-fetch [-c] [-t] [-a] [-d] [-v] [-w filename] [--recover] [--stdin | --packfile=<hash> | <commit>] <url>
10
12 Downloads a remote Git repository via HTTP.
13
14 This command always gets all objects. Historically, there were three
15 options -a, -c and -t for choosing which objects to download. They are
16 now silently ignored.
17
19 commit-id
20 Either the hash or the filename under [URL]/refs/ to pull.
21
22 -a, -c, -t
23 These options are ignored for historical reasons.
24
25 -v
26 Report what is downloaded.
27
28 -w <filename>
29 Writes the commit-id into the filename under
30 $GIT_DIR/refs/<filename> on the local end after the transfer is
31 complete.
32
33 --stdin
34 Instead of a commit id on the command line (which is not expected
35 in this case), git http-fetch expects lines on stdin in the format
36
37 <commit-id>['\t'<filename-as-in--w>]
38
39 --packfile=<hash>
40 For internal use only. Instead of a commit id on the command line
41 (which is not expected in this case), git http-fetch fetches the
42 packfile directly at the given URL and uses index-pack to generate
43 corresponding .idx and .keep files. The hash is used to determine
44 the name of the temporary file and is arbitrary. The output of
45 index-pack is printed to stdout. Requires --index-pack-args.
46
47 --index-pack-args=<args>
48 For internal use only. The command to run on the contents of the
49 downloaded pack. Arguments are URL-encoded separated by spaces.
50
51 --recover
52 Verify that everything reachable from target is fetched. Used after
53 an earlier fetch is interrupted.
54
56 Part of the git(1) suite
57
58
59
60Git 2.33.1 2021-10-12 GIT-HTTP-FETCH(1)