1GIT-LFS-CLONE(1)            General Commands Manual           GIT-LFS-CLONE(1)
2
3
4

NAME

6       git-lfs-clone - Efficiently clone a LFS-enabled repository
7

SYNOPSIS

9       git lfs clone [git clone options] repository [directory]
10

DESCRIPTION

12       Clone  an  LFS enabled Git repository more efficiently by disabling LFS
13       during the git clone, then performing a ´git lfs pull´ directly  after‐
14       wards.
15
16       ´git  lfs clone´ also installs all of the repo-level hooks (.git/hooks)
17       that LFS requires to operate. If --separate-git-dir is given, the hooks
18       will be installed there.
19
20       This  is  faster  than a regular ´git clone´ because that will download
21       LFS content using the smudge filter, which is executed individually per
22       file  in  the  working copy. This is relatively inefficient compared to
23       the batch mode and parallel downloads performed by ´git lfs pull´.
24

OPTIONS

26       All options supported by ´git clone´
27
28       -I paths --include=paths
29              See INCLUDE AND EXCLUDE
30
31       -X paths --exclude=paths
32              See INCLUDE AND EXCLUDE
33
34       --skip-repo
35              Skip installing repo-level hooks (.git/hooks) that LFS requires.
36              Disabled by default.
37

INCLUDE AND EXCLUDE

39       You  can  configure Git LFS to only fetch objects to satisfy references
40       in certain paths of the repo, and/or to exclude certain  paths  of  the
41       repo, to reduce the time you spend downloading things you do not use.
42
43       In  lfsconfig, set lfs.fetchinclude and lfs.fetchexclude to comma-sepa‐
44       rated lists of paths to include/exclude in the fetch (wildcard matching
45       as per gitignore). Only paths which are matched by fetchinclude and not
46       matched by fetchexclude will have objects fetched for them.
47
48       Note that using the command-line options -I and -X override the respec‐
49       tive configuration settings.
50

SEE ALSO

52       git-clone(1), git-lfs-pull(1).
53
54       Part of the git-lfs(1) suite.
55
56
57
58                                 February 2022                GIT-LFS-CLONE(1)
Impressum