2005-09-08 02:26:23 +02:00
|
|
|
git-http-fetch(1)
|
|
|
|
=================
|
2005-05-10 23:32:30 +02:00
|
|
|
|
|
|
|
NAME
|
|
|
|
----
|
2013-01-21 20:17:53 +01:00
|
|
|
git-http-fetch - Download from a remote Git repository via HTTP
|
2005-05-10 23:32:30 +02:00
|
|
|
|
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
--------
|
2011-07-02 04:38:26 +02:00
|
|
|
[verse]
|
2021-11-06 19:48:55 +01:00
|
|
|
'git http-fetch' [-c] [-t] [-a] [-d] [-v] [-w <filename>] [--recover] [--stdin | --packfile=<hash> | <commit>] <URL>
|
2005-05-10 23:32:30 +02:00
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
2013-01-21 20:17:53 +01:00
|
|
|
Downloads a remote Git repository via HTTP.
|
2005-05-10 23:32:30 +02:00
|
|
|
|
2018-04-22 20:12:49 +02:00
|
|
|
This command always gets all objects. Historically, there were three options
|
|
|
|
`-a`, `-c` and `-t` for choosing which objects to download. They are now
|
|
|
|
silently ignored.
|
2011-08-24 02:29:51 +02:00
|
|
|
|
2005-12-09 00:28:05 +01:00
|
|
|
OPTIONS
|
|
|
|
-------
|
|
|
|
commit-id::
|
|
|
|
Either the hash or the filename under [URL]/refs/ to
|
|
|
|
pull.
|
|
|
|
|
2018-04-22 20:12:49 +02:00
|
|
|
-a, -c, -t::
|
|
|
|
These options are ignored for historical reasons.
|
2005-05-10 23:32:30 +02:00
|
|
|
-v::
|
|
|
|
Report what is downloaded.
|
2005-08-05 17:05:02 +02:00
|
|
|
|
|
|
|
-w <filename>::
|
|
|
|
Writes the commit-id into the filename under $GIT_DIR/refs/<filename> on
|
2005-06-25 11:25:57 +02:00
|
|
|
the local end after the transfer is complete.
|
2005-05-10 23:32:30 +02:00
|
|
|
|
2006-07-27 23:56:22 +02:00
|
|
|
--stdin::
|
2007-08-24 02:44:13 +02:00
|
|
|
Instead of a commit id on the command line (which is not expected in this
|
2010-01-10 00:33:00 +01:00
|
|
|
case), 'git http-fetch' expects lines on stdin in the format
|
2006-07-27 23:56:22 +02:00
|
|
|
|
|
|
|
<commit-id>['\t'<filename-as-in--w>]
|
|
|
|
|
2020-06-10 22:57:18 +02:00
|
|
|
--packfile=<hash>::
|
2021-02-22 20:20:07 +01:00
|
|
|
For internal use only. Instead of a commit id on the command
|
|
|
|
line (which is not expected in
|
2020-06-10 22:57:18 +02:00
|
|
|
this case), 'git http-fetch' fetches the packfile directly at the given
|
|
|
|
URL and uses index-pack to generate corresponding .idx and .keep files.
|
|
|
|
The hash is used to determine the name of the temporary file and is
|
2021-02-22 20:20:07 +01:00
|
|
|
arbitrary. The output of index-pack is printed to stdout. Requires
|
|
|
|
--index-pack-args.
|
|
|
|
|
|
|
|
--index-pack-args=<args>::
|
|
|
|
For internal use only. The command to run on the contents of the
|
|
|
|
downloaded pack. Arguments are URL-encoded separated by spaces.
|
2020-06-10 22:57:18 +02:00
|
|
|
|
2007-04-27 06:59:02 +02:00
|
|
|
--recover::
|
|
|
|
Verify that everything reachable from target is fetched. Used after
|
|
|
|
an earlier fetch is interrupted.
|
|
|
|
|
2005-05-10 23:32:30 +02:00
|
|
|
GIT
|
|
|
|
---
|
2008-06-06 09:07:32 +02:00
|
|
|
Part of the linkgit:git[1] suite
|