1GIT-LFS-TRACK(1) GIT-LFS-TRACK(1)
2
3
4
6 git-lfs-track - View or add Git LFS paths to Git attributes
7
9 git lfs track [options] [pattern...]
10
12 Start tracking the given patterns(s) through Git LFS. The pattern argu‐
13 ment is written to .gitattributes. If no paths are provided, simply
14 list the currently-tracked paths.
15
16 The gitattributes documentation https://git-scm.com/docs/gitattributes
17 states that patterns use the gitignore pattern rules
18 https://git-scm.com/docs/gitignore to match paths.
19
21 · --verbose -v: If enabled, have git lfs track log files which it
22 will touch. Disabled by default.
23
24 · --dry-run -d: If enabled, have git lfs track log all actions it
25 would normally take (adding entries to .gitattributes, touching
26 files on disk, etc) without performing any mutative operations to
27 the disk.
28
29 git lfs track --dry-run [files] also implicitly mocks the behavior
30 of passing the --verbose, and will log in greater detail what it is
31 doing.
32
33 Disabled by default.
34
35 · --lockable -l Make the paths ´lockable´, meaning they should be
36 locked to edit them, and will be made read-only in the working copy
37 when not locked.
38
39 · --not-lockable Remove the lockable flag from the paths so they are
40 no longer read-only unless locked.
41
42 · --no-excluded Do not list patterns that are excluded in the output;
43 only list patterns that are tracked.
44
45 · --no-modify-attrs Makes matched entries stat-dirty so that Git can
46 re-index files you wish to convert to LFS. Does not modify any
47 .gitattributes file(s).
48
49
50
52 List the patterns that Git LFS is currently tracking:
53
54 git lfs track
55
56 Configure Git LFS to track GIF files:
57
58 git lfs track "*.gif"
59
60 Configure Git LFS to track PSD files and make them read-only unless
61 locked:
62
63 git lfs track --lockable "*.psd"
64
66 git-lfs-untrack(1), git-lfs-install(1), gitattributes(5), gitignore(5).
67
68 Part of the git-lfs(1) suite.
69
70
71
72 July 2019 GIT-LFS-TRACK(1)