Debian Codegraph @

docs/man/git-lfs-install.adoc

raw
1 = git-lfs-install(1)
2
3 == NAME
4
5 git-lfs-install - Install Git LFS configuration.
6
7 == SYNOPSIS
8
9 [source,role=synopsis,subs="verbatim,quotes"]
10 ----
11 *git lfs install* [_options_]
12 ----
13
14 == DESCRIPTION
15
16 Perform the following actions to ensure that Git LFS is setup properly:
17
18 * Set up the clean and smudge filters under the name "lfs" in the global
19 Git config.
20 * Install a pre-push hook to run git-lfs-pre-push(1) for the current
21 repository, if run from inside one. If "core.hooksPath" is configured in
22 any Git configuration (and supported, i.e., the installed Git version is
23 at least 2.9.0), then the pre-push hook will be installed to that
24 directory instead.
25
26 == OPTIONS
27
28 Without any options, `git lfs install` will only setup the "lfs" smudge
29 and clean filters if they are not already set.
30
31 `-f`::
32 `--force`::
33 Sets the "lfs" smudge and clean filters, overwriting existing values.
34 `-l`::
35 `--local`::
36 Sets the "lfs" smudge and clean filters in the local repository's git config,
37 instead of the global git config (~/.gitconfig).
38 `-w`::
39 `--worktree`::
40 Sets the "lfs" smudge and clean filters in the current working tree's git
41 config, instead of the global git config (~/.gitconfig) or local repository's
42 git config ($GIT_DIR/config). If multiple working trees are in use, the Git
43 config extension `worktreeConfig` must be enabled to use this option. If only
44 one working tree is in use, `--worktree` has the same effect as `--local`.
45 This option is only available if the installed Git version is at least 2.20.0
46 and therefore supports the "worktreeConfig" extension.
47 `-m`::
48 `--manual`::
49 Print instructions for manually updating your hooks to include git-lfs
50 functionality. Use this option if `git lfs install` fails because of existing
51 hooks and you want to retain their functionality.
52 `--system`::
53 Sets the "lfs" smudge and clean filters in the system git config, e.g.
54 /etc/gitconfig instead of the global git config (~/.gitconfig).
55 `--file=<file>`::
56 Sets the `lfs` smudge and clean filters in the Git configuration file
57 specified by the `<file>` argument.
58 `-s`::
59 `--skip-smudge`::
60 Skips automatic downloading of objects on clone or pull. This requires a
61 manual "git lfs pull" every time a new commit is checked out on your
62 repository.
63 `--skip-repo`::
64 Skips installation of hooks into the local repository; use if you want to
65 install the LFS filters but not make changes to the hooks. It is valid to use
66 `--local`, `--global`, or `--system` in conjunction with this option.
67
68 == SEE ALSO
69
70 git-lfs-uninstall(1), git-worktree(1).
71
72 Part of the git-lfs(1) suite.