1GIT-HTTP-FETCH(1)                 Git Manual                 GIT-HTTP-FETCH(1)
2
3
4

NAME

6       git-http-fetch - Download from a remote Git repository via HTTP
7

SYNOPSIS

9       git http-fetch [-c] [-t] [-a] [-d] [-v] [-w filename] [--recover] [--stdin | --packfile=<hash> | <commit>] <url>
10

DESCRIPTION

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

OPTIONS

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           Instead of a commit id on the command line (which is not expected
41           in this case), git http-fetch fetches the packfile directly at the
42           given URL and uses index-pack to generate corresponding .idx and
43           .keep files. The hash is used to determine the name of the
44           temporary file and is arbitrary. The output of index-pack is
45           printed to stdout.
46
47       --recover
48           Verify that everything reachable from target is fetched. Used after
49           an earlier fetch is interrupted.
50

GIT

52       Part of the git(1) suite
53
54
55
56Git 2.30.2                        2021-03-08                 GIT-HTTP-FETCH(1)
Impressum