GIT-LFS-TRACK(1) | GIT-LFS-TRACK(1) |
NAME¶
git-lfs-track - View or add Git LFS paths to Git attributes
SYNOPSIS¶
git lfs track [options] [<pattern>...]
DESCRIPTION¶
Start tracking the given patterns(s) through Git LFS. The argument is written to .gitattributes. If no paths are provided, simply list the currently-tracked paths.
The gitattributes documentation <https://git-scm.com/docs/gitattributes> states that patterns use the gitignore pattern rules <https://git-scm.com/docs/gitignore> to match paths. This means that patterns which contain asterisk (*), question mark (?), and the bracket characters ([ and ]) are treated specially; to disable this behavior and treat them literally instead, use --filename or escape the character with a backslash.
OPTIONS¶
--verbose, -v
--dry-run, -d
git lfs track --dry-run [files] also implicitly mocks the behavior of passing the --verbose, and will log in greater detail what it is doing.
Disabled by default.
--filename
--lockable, -l
--not-lockable
--no-excluded
Do not list patterns that are excluded in the output; only list patterns that are tracked. --no-modify-attrs: Makes matched entries stat-dirty so that Git can re-index files you wish to convert to LFS. Does not modify any .gitattributes file(s).
EXAMPLES¶
git lfs track
git lfs track "*.gif"
git lfs track --lockable "*.psd"
git lfs track --filename "project [1].psd"
SEE ALSO¶
git-lfs-untrack(1), git-lfs-install(1), gitattributes(5), gitignore(5).
Part of the git-lfs(1) suite.