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