Debian Codegraph @

docs/man/git-lfs-clone.adoc

raw
1 = git-lfs-clone(1)
2
3 == NAME
4
5 git-lfs-clone - Efficiently clone a LFS-enabled repository
6
7 == SYNOPSIS
8
9 [source,role=synopsis,subs="verbatim,quotes"]
10 ----
11 *git lfs clone* [_git clone options_] _<repository>_ [_<directory>_]
12 ----
13
14 == DESCRIPTION
15
16 Clone an LFS enabled Git repository more efficiently by disabling LFS
17 during the git clone, then performing a 'git lfs pull' directly
18 afterwards.
19
20 'git lfs clone' also installs all of the repo-level hooks (.git/hooks)
21 that LFS requires to operate. If `--separate-git-dir` is given, the
22 hooks will be installed there.
23
24 This is faster than a regular 'git clone' because that will download LFS
25 content using the smudge filter, which is executed individually per file
26 in the working copy. This is relatively inefficient compared to the
27 batch mode and parallel downloads performed by 'git lfs pull'.
28
29 == OPTIONS
30
31 All options supported by 'git clone'
32
33 `-I <paths>`::
34 `--include=<paths>`::
35 See <<_include_and_exclude>>.
36 `-X <paths>`::
37 `--exclude=<paths>`::
38 See <<_include_and_exclude>>.
39 `--skip-repo`::
40 Skip installing repo-level hooks (.git/hooks) that LFS
41 requires. Disabled by default.
42
43 == INCLUDE AND EXCLUDE
44
45 You can configure Git LFS to only fetch objects to satisfy references in
46 certain paths of the repo, and/or to exclude certain paths of the repo,
47 to reduce the time you spend downloading things you do not use.
48
49 In your Git configuration or in a `.lfsconfig` file, you may set either
50 or both of `lfs.fetchinclude` and `lfs.fetchexclude` to comma-separated
51 lists of paths. If `lfs.fetchinclude` is defined, Git LFS objects will
52 only be fetched if their path matches one in that list, and if
53 `lfs.fetchexclude` is defined, Git LFS objects will only be fetched if
54 their path does not match one in that list. Paths are matched using
55 wildcard matching as per gitignore(5).
56
57 Note that using the command-line options `-I` and `-X` override the
58 respective configuration settings. Setting either option to an empty
59 string clears the value.
60
61 == SEE ALSO
62
63 git-clone(1), git-lfs-pull(1), gitignore(5).
64
65 Part of the git-lfs(1) suite.