Man page - git-lfs-track(1)
Packages contas this manual
- git-lfs-pointer(1)
- git-lfs-config(5)
- git-lfs(1)
- git-lfs-checkout(1)
- git-lfs-post-merge(1)
- git-lfs-pull(1)
- git-lfs-lock(1)
- git-lfs-dedup(1)
- git-lfs-push(1)
- git-lfs-ext(1)
- git-lfs-uninstall(1)
- git-lfs-track(1)
- git-lfs-untrack(1)
- git-lfs-fsck(1)
- git-lfs-status(1)
- git-lfs-ls-files(1)
- git-lfs-completion(1)
- git-lfs-pre-push(1)
- git-lfs-update(1)
- git-lfs-clone(1)
- git-lfs-locks(1)
- git-lfs-clean(1)
- git-lfs-post-checkout(1)
- git-lfs-filter-process(1)
- git-lfs-smudge(1)
- git-lfs-env(1)
- git-lfs-merge-driver(1)
- git-lfs-fetch(1)
- git-lfs-migrate(1)
- git-lfs-post-commit(1)
- git-lfs-install(1)
- git-lfs-standalone-file(1)
- git-lfs-prune(1)
- git-lfs-unlock(1)
- git-lfs-logs(1)
apt-get install git-lfs
Manual
| 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.
| 2025-06-22 |