'\" t .\" Title: git-lfs-config .\" Author: [see the "AUTHOR(S)" section] .\" Generator: Asciidoctor 2.0.12 .\" Date: 2022-12-28 .\" Manual: \ \& .\" Source: \ \& .\" Language: English .\" .TH "GIT\-LFS\-CONFIG" "5" "2022-12-28" "\ \&" "\ \&" .ie \n(.g .ds Aq \(aq .el .ds Aq ' .ss \n[.ss] 0 .nh .ad l .de URL \fI\\$2\fP <\\$1>\\$3 .. .als MTO URL .if \n[.g] \{\ . mso www.tmac . am URL . ad l . . . am MTO . ad l . . . LINKSTYLE blue R < > .\} .SH "NAME" git\-lfs\-config \- Configuration options for git\-lfs .SH "CONFIGURATION FILES" .sp git\-lfs reads its configuration from any file supported by \f(CRgit config \-l\fP, including all per\-repository, per\-user, and per\-system Git configuration files. .sp Additionally, a small number of settings can be specified in a file called \f(CR.lfsconfig\fP at the root of the repository; see the "LFSCONFIG" section for more details. This configuration file is useful for setting options such as the LFS URL or access type for all users of a repository, especially when these differ from the default. The \f(CR.lfsconfig\fP file uses the same format as \f(CR.gitconfig\fP. .sp If the \f(CR.lfsconfig\fP file is missing, the index is checked for a version of the file, and that is used instead. If both are missing, \f(CRHEAD\fP is checked for the file. If the repository is bare, only \f(CRHEAD\fP is checked. This order may change for checkouts in the future to better match Git\(cqs behavior. .sp Settings from Git configuration files override the \f(CR.lfsconfig\fP file. This allows you to override settings like \f(CRlfs.url\fP in your local environment without having to modify the \f(CR.lfsconfig\fP file. .sp Most options regarding git\-lfs are contained in the \f(CR[lfs]\fP section, meaning they are all named \f(CRlfs.foo\fP or similar, although occasionally an lfs option can be scoped inside the configuration for a remote. .SH "LIST OF OPTIONS" .SS "General settings" .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \f(CRlfs.url\fP / \f(CRremote..lfsurl\fP .sp The url used to call the Git LFS remote API. Default blank (derive from clone URL). .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \f(CRlfs.pushurl\fP / \f(CRremote..lfspushurl\fP .sp The url used to call the Git LFS remote API when pushing. Default blank (derive from either LFS non\-push urls or clone url). .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \f(CRremote.lfsdefault\fP .sp The remote used to find the Git LFS remote API. \f(CRlfs.url\fP and \f(CRbranch.*.remote\fP for the current branch override this setting. If this setting is not specified and there is exactly one remote, that remote is picked; otherwise, the default is \f(CRorigin\fP. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \f(CRremote.lfspushdefault\fP .sp The remote used to find the Git LFS remote API when pushing. \f(CRlfs.url\fP and \f(CRbranch.*.pushremote\fP for the current branch override this setting. If this setting is not set, \f(CRremote.pushdefault\fP is used, or if that is not set, the order of selection is used as specified in the \f(CRremote.lfsdefault\fP above. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \f(CRlfs.remote.autodetect\fP .sp This boolean option enables the remote autodetect feaure within Git LFS. LFS tries to derive the corresponding remote from the commit information and, in case of success, ignores the settings defined by \f(CRremote.lfsdefault\fP and \f(CRremote..lfsurl\fP. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \f(CRlfs.remote.searchall\fP .sp This boolean option enables Git LFS to search all registered remotes to find LFS data. This is a fallback mechanism executed only if the LFS data could not be found via the ordinary heuristics as described in \f(CRremote.lfsdefault\fP, \f(CRremote..lfsurl\fP and, if enabled, \f(CRlfs.remote.autodetect\fP. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \f(CRlfs.dialtimeout\fP .sp Sets the maximum time, in seconds, that the HTTP client will wait to initiate a connection. This does not include the time to send a request and wait for a response. Default: 30 seconds .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \f(CRlfs.tlstimeout\fP .sp Sets the maximum time, in seconds, that the HTTP client will wait for a TLS handshake. Default: 30 seconds. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \f(CRlfs.activitytimeout\fP / \f(CRlfs.https://.activitytimeout\fP .sp Sets the maximum time, in seconds, that the HTTP client will wait for the next tcp read or write. If < 1, no activity timeout is used at all. Default: 30 seconds .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \f(CRlfs.keepalive\fP .sp Sets the maximum time, in seconds, for the HTTP client to maintain keepalive connections. Default: 30 minutes. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \f(CRlfs.ssh.automultiplex\fP .sp When using the pure SSH\-based protocol, whether to multiplex requests over a single connection when possible. This option requires the use of OpenSSH or a compatible SSH client. Default: true. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \f(CRlfs.ssh.retries\fP .sp Specifies the number of times Git LFS will attempt to obtain authorization via SSH before aborting. Default: 5. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \f(CRcore.askpass\fP, GIT_ASKPASS .sp Given as a program and its arguments, this is invoked when authentication is needed against the LFS API. The contents of stdout are interpreted as the password. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \f(CRlfs.cachecredentials\fP .sp Enables in\-memory SSH and Git Credential caching for a single \(aqgit lfs\(aq command. Default: enabled. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \f(CRlfs.storage\fP .sp Allow override LFS storage directory. Non\-absolute path is relativized to inside of Git repository directory (usually \f(CR.git\fP). .sp Note: you should not run \f(CRgit lfs prune\fP if you have different repositories sharing the same storage directory. .sp Default: \f(CRlfs\fP in Git repository directory (usually \f(CR.git/lfs\fP). .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \f(CRlfs.largefilewarning\fP .sp Warn when a file is 4 GiB or larger. Such files will be corrupted when using Windows (unless smudging is disabled) with a Git for Windows version less than 2.34.0 due to a limitation in Git. Default: true if the version is less than 2.34.0, false otherwise. .RE .SS "Upload and download transfer settings" .sp These settings control how the upload and download of LFS content occurs. .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \f(CRlfs.concurrenttransfers\fP .sp The number of concurrent uploads/downloads. Default 8. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \f(CRlfs.basictransfersonly\fP .sp If set to true, only basic HTTP upload/download transfers will be used, ignoring any more advanced transfers that the client/server may support. This is primarily to work around bugs or incompatibilities. .sp The git\-lfs client supports basic HTTP downloads, resumable HTTP downloads (using \f(CRRange\fP headers), and resumable uploads via tus.io protocol. Custom transfer methods can be added via \f(CRlfs.customtransfer\fP (see next section). However setting this value to true limits the client to simple HTTP. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \f(CRlfs.tustransfers\fP .sp If set to true, this enables resumable uploads of LFS objects through the tus.io API. Once this feature is finalized, this setting will be removed, and tus.io uploads will be available for all clients. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \f(CRlfs.standalonetransferagent\fP .sp Allows the specified custom transfer agent to be used directly for transferring files, without asking the server how the transfers should be made. The custom transfer agent has to be defined in a \f(CRlfs.customtransfer.\fP settings group. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \f(CRlfs.customtransfer..path\fP .sp \f(CRlfs.customtransfer.\fP is a settings group which defines a custom transfer hook which allows you to upload/download via an intermediate process, using any mechanism you like (rather than just HTTP). \f(CRpath\fP should point to the process you wish to invoke. The protocol between the git\-lfs client and the custom transfer process is documented at .URL "https://github.com/git\-lfs/git\-lfs/blob/main/docs/custom\-transfers.md" "" "" .sp must be a unique identifier that the LFS server understands. When calling the LFS API the client will include a list of supported transfer types. If the server also supports this named transfer type, it will select it and actions returned from the API will be in relation to that transfer type (may not be traditional URLs for example). Only if the server accepts as a transfer it supports will this custom transfer process be invoked. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \f(CRlfs.customtransfer..args\fP .sp If the custom transfer process requires any arguments, these can be provided here. This string will be expanded by the shell. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \f(CRlfs.customtransfer..concurrent\fP .sp If true (the default), git\-lfs will invoke the custom transfer process multiple times in parallel, according to \f(CRlfs.concurrenttransfers\fP, splitting the transfer workload between the processes. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \f(CRlfs.customtransfer..direction\fP .sp Specifies which direction the custom transfer process supports, either "download", "upload", or "both". The default if unspecified is "both". .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \f(CRlfs.transfer.maxretries\fP .sp Specifies how many retries LFS will attempt per OID before marking the transfer as failed. Must be an integer which is at least one. If the value is not an integer, is less than one, or is not given, a value of eight will be used instead. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \f(CRlfs.transfer.maxretrydelay\fP .sp Specifies the maximum time in seconds LFS will wait between each retry attempt. LFS uses exponential backoff for retries, doubling the time between each retry until reaching this limit. If a server requests a delay using the \f(CRRetry\-After\fP header, the header value overrides the exponential delay for that attempt and is not limited by this option. .sp Must be an integer which is not negative. Use zero to disable delays between retries unless requested by a server. If the value is not an integer, is negative, or is not given, a value of ten will be used instead. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \f(CRlfs.transfer.maxverifies\fP .sp Specifies how many verification requests LFS will attempt per OID before marking the transfer as failed, if the object has a verification action associated with it. Must be an integer which is at least one. If the value is not an integer, is less than one, or is not given, a default value of three will be used instead. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \f(CRlfs.transfer.enablehrefrewrite\fP .sp If set to true, this enables rewriting href of LFS objects using \f(CRurl.*.insteadof/pushinsteadof\fP config. \f(CRpushinsteadof\fP is used only for uploading, and \f(CRinsteadof\fP is used for downloading and for uploading when \f(CRpushinsteadof\fP is not set. .RE .SS "Push settings" .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \f(CRlfs.allowincompletepush\fP .sp When pushing, allow objects to be missing from the local cache without halting a Git push. Default: false. .RE .SS "Fetch settings" .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \f(CRlfs.fetchinclude\fP .sp When fetching, only download objects which match any entry on this comma\-separated list of paths/filenames. Wildcard matching is as per gitignore(5). See git\-lfs\-fetch(1) for examples. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \f(CRlfs.fetchexclude\fP .sp When fetching, do not download objects which match any item on this comma\-separated list of paths/filenames. Wildcard matching is as per gitignore(5). See git\-lfs\-fetch(1) for examples. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \f(CRlfs.fetchrecentrefsdays\fP .sp 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. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \f(CRlfs.fetchrecentremoterefs\fP .sp If true, fetches remote refs (for the remote you\(cqre fetching) as well as local 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. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \f(CRlfs.fetchrecentcommitsdays\fP .sp 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\(cqre often reviewing recent changes. Also used as a basis for pruning old files. The default is 0 (no previous changes). .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \f(CRlfs.fetchrecentalways\fP .sp Always operate as if \-\-recent was included in a \f(CRgit lfs fetch\fP call. Default false. .RE .SS "Prune settings" .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \f(CRlfs.pruneoffsetdays\fP .sp The number of days added to the \f(CRlfs.fetchrecent*\fP settings to determine what can be pruned. Default is 3 days, i.e. that anything fetched at the very oldest edge of the \(aqrecent window\(aq is eligible for pruning 3 days later. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \f(CRlfs.pruneremotetocheck\fP .sp 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. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \f(CRlfs.pruneverifyremotealways\fP .sp Always run \f(CRgit lfs prune\fP as if \f(CR\-\-verify\-remote\fP was provided. .RE .SS "Extensions" .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \f(CRlfs.extension..\fP .sp Git LFS extensions enable the manipulation of files streams during smudge and clean. \f(CRname\fP groups the settings for a single extension, and the settings are: \fB \f(CRclean\fP The command which runs when files are added to the index \fP \f(CRsmudge\fP The command which runs when files are written to the working copy ** \f(CRpriority\fP The order of this extension compared to others .RE .SS "Other settings" .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \f(CRlfs..access\fP .sp Note: this setting is normally set by LFS itself on receiving a 401 response (authentication required), you don\(cqt normally need to set it manually. .sp If set to "basic" then credentials will be requested before making batch requests to this url, otherwise a public request will initially be attempted. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \f(CRlfs..locksverify\fP .sp Determines whether locks are checked before Git pushes. This prevents you from pushing changes to files that other users have locked. The Git LFS pre\-push hook varies its behavior based on the value of this config key. \fB \f(CRnull\fP \- In the absence of a value, Git LFS will attempt the call, and warn if it returns an error. If the response is valid, Git LFS will set the value to \f(CRtrue\fP, and will halt the push if the user attempts to update a file locked by another user. If the server returns a \f(CR501 Not Implemented\fP response, Git LFS will set the value to \f(CRfalse.\fP \fP \f(CRtrue\fP \- Git LFS will attempt to verify locks, halting the Git push if there are any server issues, or if the user attempts to update a file locked by another user. ** \f(CRfalse\fP \- Git LFS will completely skip the lock check in the pre\-push hook. You should set this if you\(cqre not using File Locking, or your Git server verifies locked files on pushes automatically. .sp + Supports URL config lookup as described in: .URL "https://git\-scm.com/docs/git\-config#git\-config\-httplturlgt" "" "." To set this value per\-host: \f(CRgit config \-\-global lfs.https://github.com/.locksverify [true|false]\fP. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \f(CRlfs..contenttype\fP .sp Determines whether Git LFS should attempt to detect an appropriate HTTP \f(CRContent\-Type\fP header when uploading using the \(aqbasic\(aq upload adapter. If set to false, the default header of \f(CRContent\-Type: application/octet\-stream\fP is chosen instead. Default: \(aqtrue\(aq. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \f(CRlfs.skipdownloaderrors\fP .sp Causes Git LFS not to abort the smudge filter when a download error is encountered, which allows actions such as checkout to work when you are unable to download the LFS content. LFS files which could not download will contain pointer content instead. .sp Note that this will result in git commands which call the smudge filter to report success even in cases when LFS downloads fail, which may affect scripts. .sp You can also set the environment variable GIT_LFS_SKIP_DOWNLOAD_ERRORS=1 to get the same effect. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \f(CRGIT_LFS_PROGRESS\fP .sp This environment variable causes Git LFS to emit progress updates to an absolute file\-path on disk when cleaning, smudging, or fetching. .sp Progress is reported periodically in the form of a new line being appended to the end of the file. Each new line will take the following format: .sp \f(CR / / \fP .sp Each field is described below: \fB \f(CRdirection\fP: The direction of transfer, either "checkout", "download", or "upload". \fP \f(CRcurrent\fP The index of the currently transferring file. \fB \f(CRtotal files\fP The estimated count of all files to be transferred. \fP \f(CRdownloaded\fP The number of bytes already downloaded. \fB \f(CRtotal\fP The entire size of the file, in bytes. \fP \f(CRname\fP The name of the file. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \f(CRGIT_LFS_FORCE_PROGRESS\fP \f(CRlfs.forceprogress\fP .sp Controls whether Git LFS will suppress progress status when the standard output stream is not attached to a terminal. The default is \f(CRfalse\fP which makes Git LFS detect whether stdout is a terminal and suppress progress when it\(cqs not; you can disable this behaviour and force progress status even when standard output stream is not a terminal by setting either variable to 1, \(aqyes\(aq or \(aqtrue\(aq. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \f(CRGIT_LFS_SKIP_SMUDGE\fP .sp Sets whether or not Git LFS will skip attempting to convert pointers of files tracked into their corresponding objects when checked out into a working copy. If \(aqtrue\(aq, \(aq1\(aq, \(aqon\(aq, or similar, Git LFS will skip the smudge process in both \f(CRgit lfs smudge\fP and \f(CRgit lfs filter\-process\fP. If unset, or set to \(aqfalse\(aq, \(aq0\(aq, \(aqoff\(aq, or similar, Git LFS will smudge files as normal. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \f(CRGIT_LFS_SKIP_PUSH\fP .sp Sets whether or not Git LFS will attempt to upload new Git LFS object in a pre\-push hook. If \(aqtrue\(aq, \(aq1\(aq, \(aqon\(aq, or similar, Git LFS will skip the pre\-push hook, so no new Git LFS objects will be uploaded. If unset, or set to \(aqfalse\(aq, \(aq0\(aq, \(aqoff\(aq, or similar, Git LFS will proceed as normal. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \f(CRGIT_LFS_SET_LOCKABLE_READONLY\fP \f(CRlfs.setlockablereadonly\fP .sp These settings, the first an environment variable and the second a gitconfig setting, control whether files marked as \(aqlockable\(aq in \f(CRgit lfs track\fP are made read\-only in the working copy when not locked by the current user. The default is \f(CRtrue\fP; you can disable this behaviour and have all files writeable by setting either variable to 0, \(aqno\(aq or \(aqfalse\(aq. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \f(CRlfs.lockignoredfiles\fP .sp This setting controls whether Git LFS will set ignored files that match the lockable pattern read only as well as tracked files. The default is \f(CRfalse\fP; you can enable this behavior by setting the variable to 1, \(aqyes\(aq, or \(aqtrue\(aq. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \f(CRlfs.defaulttokenttl\fP .sp This setting sets a default token TTL when git\-lfs\-authenticate does not include the TTL in the JSON response but still enforces it. .sp Note that this is only necessary for larger repositories hosted on LFS servers that don\(cqt include the TTL. .RE .SH "LFSCONFIG" .sp The .lfsconfig file in a repository is read and interpreted in the same format as the file stored in .git/config. It allows a subset of keys to be used, including and limited to: .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} lfs.allowincompletepush .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} lfs.fetchexclude .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} lfs.fetchinclude .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} lfs.gitprotocol .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} lfs.locksverify .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} lfs.pushurl .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} lfs.skipdownloaderrors .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} lfs.url .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} lfs.\(rs{*}.access .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} remote.{name}.lfsurl .RE .sp The set of keys allowed in this file is restricted for security reasons. .SH "EXAMPLES" .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} Configure a custom LFS endpoint for your repository: .RE .sp \f(CRgit config \-f .lfsconfig lfs.url \c .URL "https://lfs.example.com/foo/bar/info/lfs" "" "\fP" .SH "SEE ALSO" .sp git\-config(1), git\-lfs\-install(1), gitattributes(5), gitignore(5). .sp Part of the git\-lfs(1) suite.