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] <commit> <url>
10
11
13 Downloads a remote Git repository via HTTP.
14
15 This command always gets all objects. Historically, there were three
16 options -a, -c and -t for choosing which objects to download. They are
17 now silently ignored.
18
20 commit-id
21 Either the hash or the filename under [URL]/refs/ to pull.
22
23 -a, -c, -t
24 These options are ignored for historical reasons.
25
26 -v
27 Report what is downloaded.
28
29 -w <filename>
30 Writes the commit-id into the filename under
31 $GIT_DIR/refs/<filename> on the local end after the transfer is
32 complete.
33
34 --stdin
35 Instead of a commit id on the command line (which is not expected
36 in this case), git http-fetch expects lines on stdin in the format
37
38 <commit-id>['\t'<filename-as-in--w>]
39
40 --recover
41 Verify that everything reachable from target is fetched. Used after
42 an earlier fetch is interrupted.
43
45 Part of the git(1) suite
46
47
48
49Git 2.21.0 02/24/2019 GIT-HTTP-FETCH(1)