git-lfs/docs/man/git-lfs-config.5.ronn

117 lines
3.9 KiB
Plaintext
Raw Normal View History

2015-09-01 10:43:32 +00:00
git-lfs-config(5) -- Configuration options for git-lfs
======================================================
## CONFIGURATION FILES
git-lfs uses the same configuration files as git-config(1) with the same
precedence. Most options pertaining to git-lfs are contained in the `[lfs]`
2015-09-02 16:48:13 +00:00
section, meaning they all named `lfs.foo` or similar, although occasionally an
lfs option can be scoped inside the configuration for a remote.
## LIST OF OPTIONS
### General settings
* `lfs.url` / `<remote>.lfsurl`
2015-09-02 16:48:13 +00:00
The url used to call the Git LFS remote API. Default blank (derive from clone
URL).
2015-09-02 16:48:13 +00:00
* `lfs.concurrenttransfers`
2015-09-02 16:48:13 +00:00
The number of concurrent uploads/downloads. Default 3.
* `lfs.batch`
2015-09-02 16:48:13 +00:00
Whether to use the batch API instead of requesting objects individually.
2015-09-02 16:48:47 +00:00
Default true. This setting transitions clients from the legacy to the newer
batch API and will be gone in Git LFS v1.0.
### Fetch settings
* `lfs.fetchinclude`
2015-09-02 16:48:13 +00:00
When fetching, only download objects which match any entry on this
comma-separated list of paths/filenames. Wildcard matching is as per
2015-08-18 09:00:40 +00:00
git-ignore(1). See git-lfs-fetch(1) for examples.
* `lfs.fetchexclude`
When fetching, do not download objects which match any item on this
2015-09-02 16:48:13 +00:00
comma-separated list of paths/filenames. Wildcard matching is as per
2015-08-18 09:00:40 +00:00
git-ignore(1). See git-lfs-fetch(1) for examples.
* `lfs.fetchrecentrefsdays`
2015-09-02 16:48:13 +00:00
If non-zero, fetches refs which have commits within N days of the current
date. Only local refs are included unless lfs.fetchrecentremoterefs is true.
Also used as a basis for pruning old files.
The default is 7 days.
* `lfs.fetchrecentremoterefs`
2015-09-02 16:48:13 +00:00
If true, fetches remote refs (for the remote you're fetching) as well as local
2015-09-02 16:48:13 +00:00
refs in the recent window. This is useful to fetch objects for remote branches
you might want to check out later. The default is true; if you set this to
false, fetching for those branches will only occur when you either check them
out (losing the advantage of fetch --recent), or create a tracking local
branch separately then fetch again.
* `lfs.fetchrecentcommitsdays`
2015-09-02 16:48:13 +00:00
In addition to fetching at refs, also fetches previous changes made within N
days of the latest commit on the ref. This is useful if you're often reviewing
recent changes. Also used as a basis for pruning old files.
The default is 0 (no previous changes).
* `lfs.fetchrecentalways`
2015-09-02 16:48:13 +00:00
Always operate as if --recent was included in a `git lfs fetch` call. Default
false.
### Prune settings
* `lfs.pruneoffsetdays`
The number of days added to the `lfs.fetchrecent*` settings to determine what
can be pruned. Default is 3 days, i.e. that anything fetched at the very
oldest edge of the 'recent window' is eligible for pruning 3 days later.
* `lfs.pruneremotetocheck`
Set the remote that LFS files must have been pushed to in order for them to
be considered eligible for local pruning. Also the remote which is called if
--verify-remote is enabled.
* `lfs.pruneverifyremotealways`
Always run `git lfs prune` as if `--verify-remote` was provided.
### Extensions
* `lfs.extension.<name>.<setting>`
2015-09-02 16:48:13 +00:00
Git LFS extensions enable the manipulation of files streams during smudge and
clean. `name` groups the settings for a single extension, and the settings
are:
* `clean` The command which runs when files are added to the index
* `smudge` The command which runs when files are written to the working copy
* `priority` The order of this extension compared to others
### Other settings
* `lfs.<url>.access`
2015-09-02 16:48:13 +00:00
Note: this setting is normally set by LFS itself on receiving a 401 response
2015-09-02 16:48:47 +00:00
(authentication required), you don't normally need to set it manually.
2015-09-02 16:48:47 +00:00
If set to "basic" then credentials will be requested before making batch
2015-09-02 16:48:13 +00:00
requests to this url, otherwise a public request will initially be attempted.
## SEE ALSO
2015-11-16 20:31:26 +00:00
git-config(1), git-lfs-install(1), gitattributes(5).
Part of the git-lfs(1) suite.