GIT-LFS-TRACK(1) | GIT-LFS-TRACK(1) |
git-lfs-track - View or add Git LFS paths to Git attributes
git lfs track [options] [<pattern>...]
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.
--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
git lfs track
git lfs track "*.gif"
git lfs track --lockable "*.psd"
git lfs track --filename "project [1].psd"
git-lfs-untrack(1), git-lfs-install(1), gitattributes(5), gitignore(5).
Part of the git-lfs(1) suite.
2023-04-09 |