Update git-local-fetch documentation
[git/git.git] / Documentation / git-local-fetch.txt
CommitLineData
215a7ad1
JH
1git-local-fetch(1)
2==================
2cf565c5
DG
3
4NAME
5----
c3f0baac 6git-local-fetch - Duplicate another git repository on a local system
2cf565c5
DG
7
8
9SYNOPSIS
10--------
215a7ad1 11'git-local-fetch' [-c] [-t] [-a] [-d] [-v] [-w filename] [--recover] [-l] [-s] [-n] commit-id path
2cf565c5
DG
12
13DESCRIPTION
14-----------
72e9340c 15Duplicates another git repository on a local system.
2cf565c5
DG
16
17OPTIONS
18-------
19-c::
20 Get the commit objects.
21-t::
22 Get trees associated with the commit objects.
23-a::
24 Get all the objects.
25-v::
26 Report what is downloaded.
f5158a07
AR
27-s::
28 Instead of regular file-to-file copying use symbolic links to the objects
29 in the remote repository.
30-l::
31 Before attempting symlinks (if -s is specified) or file-to-file copying the
32 remote objects, try to hardlink the remote objects into the local
33 repository.
34-n::
35 Never attempt to file-to-file copy remote objects. Only useful with
36 -s or -l command-line options.
2c6e4771
JS
37
38-w <filename>::
39 Writes the commit-id into the filename under $GIT_DIR/refs/<filename> on
f5ab6cca 40 the local end after the transfer is complete.
2cf565c5 41
8e87ca66
PB
42--stdin::
43 Instead of a commit id on the commandline (which is not expected in this
44 case), 'git-local-fetch' expects lines on stdin in the format
45
46 <commit-id>['\t'<filename-as-in--w>]
47
f5158a07
AR
48--recover::
49 Verify that everything reachable from target is fetched. Used after
50 an earlier fetch is interrupted.
51
2cf565c5
DG
52Author
53------
f5ab6cca 54Written by Junio C Hamano <junkio@cox.net>
2cf565c5
DG
55
56Documentation
57--------------
58Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel.org>.
59
60GIT
61---
a7154e91 62Part of the gitlink:git[7] suite
2cf565c5 63