checkout: do not corrupt HEAD on empty repo
[git/dscho.git] / Documentation / git-http-fetch.txt
blob4d42073867b09317dc674b0c0f5f1b76d4129a03
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 OPTIONS
19 -------
20 commit-id::
21         Either the hash or the filename under [URL]/refs/ to
22         pull.
24 -c::
25         Get the commit objects.
26 -t::
27         Get trees associated with the commit objects.
28 -a::
29         Get all the objects.
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