git-lfs/docs/man/git-lfs-track.1.ronn
2016-07-06 09:25:47 -06:00

45 lines
1.1 KiB
Markdown

git-lfs-track(1) - View or add Git LFS paths to Git attributes
==============================================================
## SYNOPSIS
`git lfs track` [options] [<path>...]
## DESCRIPTION
Start tracking the given path(s) through Git LFS. The <path> argument
can be a pattern or a file path. If no paths are provided, simply list
the currently-tracked paths.
## OPTIONS
* `--verbose` `-v`:
If enabled, have `git lfs track` log files which it will touch. Disabled by
default.
* `--dry-run` `-d`:
If enabled, have `git lfs track` log all actions it would normally take
(adding entries to .gitattributes, touching files on disk, etc) without
performing any mutative operations to the disk.
`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.
## EXAMPLES
* List the paths that Git LFS is currently tracking:
`git lfs track`
* Configure Git LFS to track GIF files:
`git lfs track '*.gif'`
## SEE ALSO
git-lfs-untrack(1), git-lfs-install(1), gitattributes(5).
Part of the git-lfs(1) suite.