test-lib: extract Bash version check for '-x' tracing
[git.git] / Documentation / git-http-fetch.txt
blob666b042679f405fd1759b42a8d86aafb083e817c
1 git-http-fetch(1)
2 =================
4 NAME
5 ----
6 git-http-fetch - Download from a remote Git repository via HTTP
9 SYNOPSIS
10 --------
11 [verse]
12 'git http-fetch' [-c] [-t] [-a] [-d] [-v] [-w filename] [--recover] [--stdin] <commit> <url>
14 DESCRIPTION
15 -----------
16 Downloads a remote Git repository via HTTP.
18 This command always gets all objects. Historically, there were three options
19 `-a`, `-c` and `-t` for choosing which objects to download. They are now
20 silently ignored.
22 OPTIONS
23 -------
24 commit-id::
25         Either the hash or the filename under [URL]/refs/ to
26         pull.
28 -a, -c, -t::
29         These options are ignored for historical reasons.
30 -v::
31         Report what is downloaded.
33 -w <filename>::
34         Writes the commit-id into the filename under $GIT_DIR/refs/<filename> on
35         the local end after the transfer is complete.
37 --stdin::
38         Instead of a commit id on the command line (which is not expected in this
39         case), 'git http-fetch' expects lines on stdin in the format
41                 <commit-id>['\t'<filename-as-in--w>]
43 --recover::
44         Verify that everything reachable from target is fetched.  Used after
45         an earlier fetch is interrupted.
47 GIT
48 ---
49 Part of the linkgit:git[1] suite