Update git-local-fetch documentation
[git/git.git] / Documentation / git-local-fetch.txt
1 git-local-fetch(1)
2 ==================
3
4 NAME
5 ----
6 git-local-fetch - Duplicate another git repository on a local system
7
8
9 SYNOPSIS
10 --------
11 'git-local-fetch' [-c] [-t] [-a] [-d] [-v] [-w filename] [--recover] [-l] [-s] [-n] commit-id path
12
13 DESCRIPTION
14 -----------
15 Duplicates another git repository on a local system.
16
17 OPTIONS
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.
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.
37
38 -w <filename>::
39 Writes the commit-id into the filename under $GIT_DIR/refs/<filename> on
40 the local end after the transfer is complete.
41
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
48 --recover::
49 Verify that everything reachable from target is fetched. Used after
50 an earlier fetch is interrupted.
51
52 Author
53 ------
54 Written by Junio C Hamano <junkio@cox.net>
55
56 Documentation
57 --------------
58 Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel.org>.
59
60 GIT
61 ---
62 Part of the gitlink:git[7] suite
63