git-lfs/docs/man/git-lfs-track.1.ronn

50 lines
1.3 KiB
Plaintext
Raw Normal View History

git-lfs-track(1) - View or add Git LFS paths to Git attributes
==============================================================
2015-03-22 18:59:56 +00:00
## SYNOPSIS
`git lfs track` [options] [<path>...]
2015-03-22 18:59:56 +00:00
## 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.
2015-03-22 18:59:56 +00:00
## OPTIONS
* `--no-touch` `-n`:
If enabled, prevent `git lfs track` from touching files matched by the
provided pattern glob. Disabled by default.
* `--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
preforming any mutative operations to the disk.
`git lfs track --dry-run [files]` is equivalent to calling
`git lfs track --no-touch --verbose` and reverting any changes made to
.gitattributes.
Disabled by default.
2015-03-22 18:59:56 +00:00
## EXAMPLES
* List the paths that Git LFS is currently tracking:
2015-03-22 18:59:56 +00:00
`git lfs track`
* Configure Git LFS to track GIF files:
2015-03-22 18:59:56 +00:00
`git lfs track '*.gif'`
2015-03-22 18:59:56 +00:00
## SEE ALSO
2015-11-16 20:31:26 +00:00
git-lfs-untrack(1), git-lfs-install(1), gitattributes(5).
2015-03-22 18:59:56 +00:00
Part of the git-lfs(1) suite.