| 1 |
= git-lfs-config(5) |
| 2 |
|
| 3 |
== NAME |
| 4 |
|
| 5 |
git-lfs-config - Configuration options for git-lfs |
| 6 |
|
| 7 |
== CONFIGURATION FILES |
| 8 |
|
| 9 |
git-lfs reads its configuration from any file supported by |
| 10 |
`git config -l`, including all per-repository, per-user, and per-system |
| 11 |
Git configuration files. |
| 12 |
|
| 13 |
Additionally, a small number of settings can be specified in a file |
| 14 |
called `.lfsconfig` at the root of the repository; see the "LFSCONFIG" |
| 15 |
section for more details. This configuration file is useful for setting |
| 16 |
options such as the LFS URL or access type for all users of a |
| 17 |
repository, especially when these differ from the default. The |
| 18 |
`.lfsconfig` file uses the same format as `.gitconfig`. |
| 19 |
|
| 20 |
If the `.lfsconfig` file is missing, the index is checked for a version |
| 21 |
of the file, and that is used instead. If both are missing, `HEAD` is |
| 22 |
checked for the file. If the repository is bare, only `HEAD` is checked. |
| 23 |
This order may change for checkouts in the future to better match Git's |
| 24 |
behavior. |
| 25 |
|
| 26 |
Settings from Git configuration files override the `.lfsconfig` file. |
| 27 |
This allows you to override settings like `lfs.url` in your local |
| 28 |
environment without having to modify the `.lfsconfig` file. |
| 29 |
|
| 30 |
Most options regarding git-lfs are contained in the `[lfs]` section, |
| 31 |
meaning they are all named `lfs.foo` or similar, although occasionally |
| 32 |
an lfs option can be scoped inside the configuration for a remote. |
| 33 |
|
| 34 |
== LIST OF OPTIONS |
| 35 |
|
| 36 |
=== General settings |
| 37 |
|
| 38 |
* `lfs.url` / `remote.<remote>.lfsurl` |
| 39 |
+ |
| 40 |
The url used to call the Git LFS remote API. Default blank (derive from |
| 41 |
clone URL). |
| 42 |
* `lfs.pushurl` / `remote.<remote>.lfspushurl` |
| 43 |
+ |
| 44 |
The url used to call the Git LFS remote API when pushing. Default blank |
| 45 |
(derive from either LFS non-push urls or clone url). |
| 46 |
* `remote.lfsdefault` |
| 47 |
+ |
| 48 |
The remote used to find the Git LFS remote API. `lfs.url` and |
| 49 |
`branch.*.remote` for the current branch override this setting. If this |
| 50 |
setting is not specified and there is exactly one remote, that remote is |
| 51 |
picked; otherwise, the default is `origin`. |
| 52 |
* `remote.lfspushdefault` |
| 53 |
+ |
| 54 |
The remote used to find the Git LFS remote API when pushing. `lfs.url` |
| 55 |
and `branch.*.pushremote` for the current branch override this setting. |
| 56 |
If this setting is not set, `remote.pushdefault` is used, or if that is |
| 57 |
not set, the order of selection is used as specified in the |
| 58 |
`remote.lfsdefault` above. |
| 59 |
* `lfs.remote.autodetect` |
| 60 |
+ |
| 61 |
This boolean option enables the remote autodetect feaure within Git LFS. |
| 62 |
LFS tries to derive the corresponding remote from the commit information |
| 63 |
and, in case of success, ignores the settings defined by |
| 64 |
`remote.lfsdefault` and `remote.<remote>.lfsurl`. |
| 65 |
* `lfs.remote.searchall` |
| 66 |
+ |
| 67 |
This boolean option enables Git LFS to search all registered remotes to |
| 68 |
find LFS data. This is a fallback mechanism executed only if the LFS |
| 69 |
data could not be found via the ordinary heuristics as described in |
| 70 |
`remote.lfsdefault`, `remote.<remote>.lfsurl` and, if enabled, |
| 71 |
`lfs.remote.autodetect`. |
| 72 |
* `lfs.dialtimeout` |
| 73 |
+ |
| 74 |
Sets the maximum time, in seconds, that the HTTP client will wait to |
| 75 |
initiate a connection. This does not include the time to send a request |
| 76 |
and wait for a response. Default: 30 seconds |
| 77 |
* `lfs.tlstimeout` |
| 78 |
+ |
| 79 |
Sets the maximum time, in seconds, that the HTTP client will wait for a |
| 80 |
TLS handshake. Default: 30 seconds. |
| 81 |
* `lfs.activitytimeout` / `lfs.https://<host>.activitytimeout` |
| 82 |
+ |
| 83 |
Sets the maximum time, in seconds, that the HTTP client will wait for |
| 84 |
the next tcp read or write. If < 1, no activity timeout is used at all. |
| 85 |
Default: 30 seconds |
| 86 |
* `lfs.keepalive` |
| 87 |
+ |
| 88 |
Sets the maximum time, in seconds, for the HTTP client to maintain |
| 89 |
keepalive connections. Default: 30 minutes. |
| 90 |
* `lfs.ssh.automultiplex` |
| 91 |
+ |
| 92 |
When using the pure SSH-based protocol, whether to multiplex requests |
| 93 |
over a single connection when possible. This option requires the use of |
| 94 |
OpenSSH or a compatible SSH client. Default: false on Windows, otherwise |
| 95 |
true. |
| 96 |
* `lfs.ssh.retries` |
| 97 |
+ |
| 98 |
Specifies the number of times Git LFS will attempt to obtain |
| 99 |
authorization via SSH before aborting. Default: 5. |
| 100 |
* `core.askpass`, GIT_ASKPASS |
| 101 |
+ |
| 102 |
Given as a program and its arguments, this is invoked when |
| 103 |
authentication is needed against the LFS API. The contents of stdout are |
| 104 |
interpreted as the password. |
| 105 |
* `lfs.cachecredentials` |
| 106 |
+ |
| 107 |
Enables in-memory SSH and Git Credential caching for a single 'git lfs' |
| 108 |
command. Default: enabled. |
| 109 |
* `lfs.pathFilterCacheSize` |
| 110 |
+ |
| 111 |
Sets the size of the in-memory cache of results from matching file paths |
| 112 |
against the filter defined by the `lfs.fetchInclude` and `lfs.fetchExclude` |
| 113 |
options, or for commands which accept them, by the `--include` and `--exclude` |
| 114 |
command-line options or their `-I` and `-X` equivalents. |
| 115 |
Set to `0` or `none` to disable the cache, or to `unlimited` to allow |
| 116 |
the cache to grow without bound. Default: 10,000 unique file paths. |
| 117 |
* `lfs.storage` |
| 118 |
+ |
| 119 |
Allow override LFS storage directory. Non-absolute path is relativized |
| 120 |
to inside of Git repository directory (usually `.git`). |
| 121 |
+ |
| 122 |
Note: you should not run `git lfs prune` if you have different |
| 123 |
repositories sharing the same storage directory. |
| 124 |
+ |
| 125 |
Default: `lfs` in Git repository directory (usually `.git/lfs`). |
| 126 |
* `lfs.largefilewarning` |
| 127 |
+ |
| 128 |
Warn when a file is 4 GiB or larger. Such files will be corrupted when |
| 129 |
using Windows (unless smudging is disabled) with a Git for Windows |
| 130 |
version less than 2.34.0 due to a limitation in Git. Default: true if |
| 131 |
the version is less than 2.34.0, false otherwise. |
| 132 |
|
| 133 |
=== Upload and download transfer settings |
| 134 |
|
| 135 |
These settings control how the upload and download of LFS content |
| 136 |
occurs. |
| 137 |
|
| 138 |
* `lfs.concurrenttransfers` |
| 139 |
+ |
| 140 |
The number of concurrent uploads/downloads. Default is 8. |
| 141 |
* `lfs.basictransfersonly` |
| 142 |
+ |
| 143 |
If set to true, only basic HTTP upload/download transfers will be used, |
| 144 |
ignoring any more advanced transfers that the client/server may support. |
| 145 |
This is primarily to work around bugs or incompatibilities. |
| 146 |
+ |
| 147 |
The git-lfs client supports basic HTTP downloads, resumable HTTP |
| 148 |
downloads (using `Range` headers), and resumable uploads via tus.io |
| 149 |
protocol. Custom transfer methods can be added via `lfs.customtransfer` |
| 150 |
(see next section). However setting this value to true limits the client |
| 151 |
to simple HTTP. |
| 152 |
* `lfs.tustransfers` |
| 153 |
+ |
| 154 |
If set to true, this enables resumable uploads of LFS objects through |
| 155 |
the tus.io API. Once this feature is finalized, this setting will be |
| 156 |
removed, and tus.io uploads will be available for all clients. |
| 157 |
* `lfs.standalonetransferagent` |
| 158 |
+ |
| 159 |
Allows the specified custom transfer agent to be used directly for |
| 160 |
transferring files, without asking the server how the transfers should |
| 161 |
be made. The custom transfer agent must be defined in a |
| 162 |
`lfs.customtransfer.<name>` settings group, or else must be the internal |
| 163 |
`lfs-standalone-file` transfer adapter. Other values will be ignored. |
| 164 |
+ |
| 165 |
See git-lfs-standalone-file(1) for details of the internal |
| 166 |
`lfs-standalone-file` custom transfer adapter, which is intended for |
| 167 |
use with local `file:///` URLs. |
| 168 |
* `lfs.customtransfer.<name>.path` |
| 169 |
+ |
| 170 |
`lfs.customtransfer.<name>` is a settings group which defines a custom |
| 171 |
transfer hook which allows you to upload/download via an intermediate |
| 172 |
process, using any mechanism you like (rather than just HTTP). `path` |
| 173 |
should point to the process you wish to invoke. The protocol between the |
| 174 |
git-lfs client and the custom transfer process is documented at |
| 175 |
https://github.com/git-lfs/git-lfs/blob/main/docs/custom-transfers.md |
| 176 |
+ |
| 177 |
The `<name>` must be a unique identifier that the LFS server understands |
| 178 |
and which does not conflict with the name of any pre-defined internal |
| 179 |
transfer adapter in the client such as "basic" or "ssh", as these will |
| 180 |
always override a custom transfer adapter with the same name. When |
| 181 |
calling the LFS API the client will include a list of supported transfer |
| 182 |
types. If the server also supports this named transfer type, it will |
| 183 |
select it and actions returned from the API will be in relation to that |
| 184 |
transfer type (may not be traditional URLs for example). Only if the |
| 185 |
server accepts as a transfer it supports will this custom transfer |
| 186 |
process be invoked. |
| 187 |
+ |
| 188 |
If multiple `lfs.customtransfer.<name>` settings are defined, they |
| 189 |
must all be contained within the same configuration sub-section, |
| 190 |
meaning that the sub-section portion of their names must be identical. |
| 191 |
For instance, if `lfs.customTransfer.myAdapter.path` is defined, |
| 192 |
then `lfs.customTransfer.myAdapter.args` will be accepted, while |
| 193 |
`lfs.customtransfer.myadapter.args` will not. |
| 194 |
* `lfs.customtransfer.<name>.args` |
| 195 |
+ |
| 196 |
If the custom transfer process requires any arguments, these can be |
| 197 |
provided here. This string will be expanded by the shell. |
| 198 |
* `lfs.customtransfer.<name>.concurrent` |
| 199 |
+ |
| 200 |
If true (the default), git-lfs will invoke the custom transfer process |
| 201 |
multiple times in parallel, according to `lfs.concurrenttransfers`, |
| 202 |
splitting the transfer workload between the processes. |
| 203 |
* `lfs.customtransfer.<name>.direction` |
| 204 |
+ |
| 205 |
Specifies which direction the custom transfer process supports, either |
| 206 |
"download", "upload", or "both". The default if unspecified is "both". |
| 207 |
* `lfs.transfer.httpDownloadEncoding` / `lfs.transfer.<url>.httpDownloadEncoding` |
| 208 |
+ |
| 209 |
Specifies the compression encoding to use when downloading LFS objects |
| 210 |
over HTTP. Valid values are `gzip` or `zstd`. Default is `gzip`. |
| 211 |
+ |
| 212 |
This option may be applied selectively to some URLs, following the same |
| 213 |
matching rules as those defined for Git's `http.<url>.*` |
| 214 |
link:https://git-scm.com/docs/git-config#Documentation/git-config.txt-httplturlgt[options]. |
| 215 |
For example, to set this option only for a specific host, use: |
| 216 |
+ |
| 217 |
.... |
| 218 |
git config lfs.transfer.https://example.com/.httpDownloadEncoding zstd |
| 219 |
.... |
| 220 |
* `lfs.transfer.maxretries` |
| 221 |
+ |
| 222 |
Specifies how many retries LFS will attempt per OID before marking the |
| 223 |
transfer as failed. Must be an integer which is at least one. If the |
| 224 |
value is not an integer, is less than one, or is not given, a value of |
| 225 |
eight will be used instead. |
| 226 |
* `lfs.transfer.maxretrydelay` |
| 227 |
+ |
| 228 |
Specifies the maximum time in seconds LFS will wait between each retry |
| 229 |
attempt. LFS uses exponential backoff for retries, doubling the time |
| 230 |
between each retry until reaching this limit. If a server requests a |
| 231 |
delay using the `Retry-After` header, the header value overrides the |
| 232 |
exponential delay for that attempt and is not limited by this option. |
| 233 |
+ |
| 234 |
Must be an integer which is not negative. Use zero to disable delays |
| 235 |
between retries unless requested by a server. If the value is not an |
| 236 |
integer, is negative, or is not given, a value of ten will be used |
| 237 |
instead. |
| 238 |
* `lfs.transfer.maxRetryTime` |
| 239 |
+ |
| 240 |
Specifies the maximum time in seconds LFS will wait before aborting a |
| 241 |
transfer when a server requests a delay using the `Retry-After` header. |
| 242 |
If the server indicates a wait time longer than this value, LFS will |
| 243 |
log a warning and mark the transfer as failed rather than sleeping for |
| 244 |
the full requested duration. |
| 245 |
+ |
| 246 |
Must be an integer which is at least one. If the value is not an integer, |
| 247 |
is less than one, or is not given, a value of 300 will be used instead. |
| 248 |
* `lfs.transfer.maxverifies` |
| 249 |
+ |
| 250 |
Specifies how many verification requests LFS will attempt per OID before |
| 251 |
marking the transfer as failed, if the object has a verification action |
| 252 |
associated with it. Must be an integer which is at least one. If the |
| 253 |
value is not an integer, is less than one, or is not given, a default |
| 254 |
value of three will be used instead. |
| 255 |
* `lfs.transfer.enablehrefrewrite` |
| 256 |
+ |
| 257 |
If set to true, this enables rewriting href of LFS objects using |
| 258 |
`url.*.insteadof/pushinsteadof` config. `pushinsteadof` is used only for |
| 259 |
uploading, and `insteadof` is used for downloading and for uploading |
| 260 |
when `pushinsteadof` is not set. |
| 261 |
* `lfs.transfer.batchSize` |
| 262 |
+ |
| 263 |
The number of objects to download/upload sent in a single batch request |
| 264 |
to the LFS server. Default is 100. |
| 265 |
+ |
| 266 |
This value should be changed with caution, as it can have a significant |
| 267 |
impact on the performance of the LFS server and the server is free to |
| 268 |
return an HTTP 413 status code if this value is too high as the Batch |
| 269 |
API specification states. |
| 270 |
|
| 271 |
=== Push settings |
| 272 |
|
| 273 |
* `lfs.allowincompletepush` |
| 274 |
+ |
| 275 |
When pushing, allow objects to be missing from the local cache without |
| 276 |
halting a Git push. Default: false. |
| 277 |
|
| 278 |
=== Fetch settings |
| 279 |
|
| 280 |
* `lfs.fetchinclude` |
| 281 |
+ |
| 282 |
When fetching, only download objects which match any entry on this |
| 283 |
comma-separated list of paths/filenames. Wildcard matching is as per |
| 284 |
gitignore(5). See git-lfs-fetch(1) for examples. |
| 285 |
* `lfs.fetchexclude` |
| 286 |
+ |
| 287 |
When fetching, do not download objects which match any item on this |
| 288 |
comma-separated list of paths/filenames. Wildcard matching is as per |
| 289 |
gitignore(5). See git-lfs-fetch(1) for examples. |
| 290 |
* `lfs.fetchrecentrefsdays` |
| 291 |
+ |
| 292 |
If non-zero, fetches refs which have commits within N days of the |
| 293 |
current date. Only local refs are included unless |
| 294 |
lfs.fetchrecentremoterefs is true. Also used as a basis for pruning old |
| 295 |
files. The default is 7 days. |
| 296 |
* `lfs.fetchrecentremoterefs` |
| 297 |
+ |
| 298 |
If true, fetches remote refs (for the remote you're fetching) as well as |
| 299 |
local refs in the recent window. This is useful to fetch objects for |
| 300 |
remote branches you might want to check out later. The default is true; |
| 301 |
if you set this to false, fetching for those branches will only occur |
| 302 |
when you either check them out (losing the advantage of fetch --recent), |
| 303 |
or create a tracking local branch separately then fetch again. |
| 304 |
* `lfs.fetchrecentcommitsdays` |
| 305 |
+ |
| 306 |
In addition to fetching at refs, also fetches previous changes made |
| 307 |
within N days of the latest commit on the ref. This is useful if you're |
| 308 |
often reviewing recent changes. Also used as a basis for pruning old |
| 309 |
files. The default is 0 (no previous changes). |
| 310 |
* `lfs.fetchrecentalways` |
| 311 |
+ |
| 312 |
Always operate as if --recent was included in a `git lfs fetch` call. |
| 313 |
Default false. |
| 314 |
|
| 315 |
=== Prune settings |
| 316 |
|
| 317 |
* `lfs.pruneoffsetdays` |
| 318 |
+ |
| 319 |
The number of days added to the `lfs.fetchrecent*` settings to determine |
| 320 |
what can be pruned. Default is 3 days, i.e. that anything fetched at the |
| 321 |
very oldest edge of the 'recent window' is eligible for pruning 3 days |
| 322 |
later. |
| 323 |
* `lfs.pruneremotetocheck` |
| 324 |
+ |
| 325 |
Set the remote that LFS files must have been pushed to in order for them |
| 326 |
to be considered eligible for local pruning. Also the remote which is |
| 327 |
called if --verify-remote is enabled. |
| 328 |
* `lfs.pruneverifyremotealways` |
| 329 |
+ |
| 330 |
Always run `git lfs prune` as if `--verify-remote` was provided. |
| 331 |
* `lfs.pruneverifyunreachablealways` |
| 332 |
+ |
| 333 |
Always run `git lfs prune` as if `--verify-unreachable` was provided. |
| 334 |
|
| 335 |
=== Extensions |
| 336 |
|
| 337 |
* `lfs.extension.<name>.<setting>` |
| 338 |
+ |
| 339 |
Git LFS extensions enable the manipulation of files streams during |
| 340 |
smudge and clean. `name` groups the settings for a single extension, and |
| 341 |
the settings are: |
| 342 |
** `clean` The command which runs when files are added to the index |
| 343 |
** `smudge` The command which runs when files are written to the working |
| 344 |
copy |
| 345 |
** `priority` The order of this extension compared to others |
| 346 |
|
| 347 |
=== Other settings |
| 348 |
|
| 349 |
* `lfs.<url>.access` |
| 350 |
+ |
| 351 |
Note: this setting is normally set by LFS itself on receiving a 401 |
| 352 |
response (authentication required), you don't normally need to set it |
| 353 |
manually. |
| 354 |
+ |
| 355 |
If set to "basic" then credentials will be requested before making batch |
| 356 |
requests to this url, otherwise a public request will initially be |
| 357 |
attempted. |
| 358 |
* `lfs.<url>.locksverify` |
| 359 |
+ |
| 360 |
Determines whether locks are checked before Git pushes. This prevents |
| 361 |
you from pushing changes to files that other users have locked. The Git |
| 362 |
LFS pre-push hook varies its behavior based on the value of this config |
| 363 |
key. |
| 364 |
** `null` - In the absence of a value, Git LFS will attempt the call, |
| 365 |
and warn if it returns an error. If the response is valid, Git LFS will |
| 366 |
set the value to `true`, and will halt the push if the user attempts to |
| 367 |
update a file locked by another user. If the server returns a |
| 368 |
`501 Not Implemented` response, Git LFS will set the value to `false.` |
| 369 |
** `true` - Git LFS will attempt to verify locks, halting the Git push |
| 370 |
if there are any server issues, or if the user attempts to update a file |
| 371 |
locked by another user. |
| 372 |
** `false` - Git LFS will completely skip the lock check in the pre-push |
| 373 |
hook. You should set this if you're not using File Locking, or your Git |
| 374 |
server verifies locked files on pushes automatically. |
| 375 |
+ |
| 376 |
Supports URL config lookup as described in: |
| 377 |
https://git-scm.com/docs/git-config#Documentation/git-config.txt-httplturlgt. To set this |
| 378 |
value per-host: |
| 379 |
`git config --global lfs.https://github.com/.locksverify [true|false]`. |
| 380 |
* `lfs.sshtransfer` / `lfs.<url>.sshtransfer` |
| 381 |
+ |
| 382 |
Configures whether SSH transfers (the pure SSH protocol) are used. |
| 383 |
By default (or if the value is set to `negotiate`), the pure SSH protocol is |
| 384 |
tried first, and then the older hybrid protocol. If `always` is used, then |
| 385 |
only the pure SSH protocol is tried. Similarly, if `never` is used, then only |
| 386 |
the hybrid protocol is attempted. |
| 387 |
* `lfs.<url>.contenttype` |
| 388 |
+ |
| 389 |
Determines whether Git LFS should attempt to detect an appropriate HTTP |
| 390 |
`Content-Type` header when uploading using the 'basic' upload adapter. |
| 391 |
If set to false, the default header of |
| 392 |
`Content-Type: application/octet-stream` is chosen instead. Default: |
| 393 |
'true'. |
| 394 |
* `lfs.skipdownloaderrors` |
| 395 |
+ |
| 396 |
Causes Git LFS not to abort the smudge filter when a download error is |
| 397 |
encountered, which allows actions such as checkout to work when you are |
| 398 |
unable to download the LFS content. LFS files which could not download |
| 399 |
will contain pointer content instead. |
| 400 |
+ |
| 401 |
Note that this will result in git commands which call the smudge filter |
| 402 |
to report success even in cases when LFS downloads fail, which may |
| 403 |
affect scripts. |
| 404 |
+ |
| 405 |
You can also set the environment variable GIT_LFS_SKIP_DOWNLOAD_ERRORS=1 |
| 406 |
to get the same effect. |
| 407 |
* `GIT_LFS_PROGRESS` |
| 408 |
+ |
| 409 |
This environment variable causes Git LFS to emit progress updates to an |
| 410 |
absolute file-path on disk when cleaning, smudging, or fetching. |
| 411 |
+ |
| 412 |
Progress is reported periodically in the form of a new line being |
| 413 |
appended to the end of the file. Each new line will take the following |
| 414 |
format: |
| 415 |
+ |
| 416 |
`<direction> <current>/<total files> <downloaded>/<total> <name>` |
| 417 |
+ |
| 418 |
Each field is described below: |
| 419 |
** `direction`: The direction of transfer, either "checkout", |
| 420 |
"download", or "upload". |
| 421 |
** `current` The index of the currently transferring file. |
| 422 |
** `total files` The estimated count of all files to be transferred. |
| 423 |
** `downloaded` The number of bytes already downloaded. |
| 424 |
** `total` The entire size of the file, in bytes. |
| 425 |
** `name` The name of the file. |
| 426 |
* `GIT_LFS_FORCE_PROGRESS` `lfs.forceprogress` |
| 427 |
+ |
| 428 |
Controls whether Git LFS will suppress progress status when the standard |
| 429 |
output stream is not attached to a terminal. The default is `false` |
| 430 |
which makes Git LFS detect whether stdout is a terminal and suppress |
| 431 |
progress when it's not; you can disable this behaviour and force |
| 432 |
progress status even when standard output stream is not a terminal by |
| 433 |
setting either variable to 1, 'yes' or 'true'. |
| 434 |
* `GIT_LFS_SKIP_SMUDGE` |
| 435 |
+ |
| 436 |
Sets whether or not Git LFS will skip attempting to convert pointers of |
| 437 |
files tracked into their corresponding objects when checked out into a |
| 438 |
working copy. If 'true', '1', 'on', or similar, Git LFS will skip the |
| 439 |
smudge process in both `git lfs smudge` and `git lfs filter-process`. If |
| 440 |
unset, or set to 'false', '0', 'off', or similar, Git LFS will smudge |
| 441 |
files as normal. |
| 442 |
* `GIT_LFS_SKIP_PUSH` |
| 443 |
+ |
| 444 |
Sets whether or not Git LFS will attempt to upload new Git LFS object in |
| 445 |
a pre-push hook. If 'true', '1', 'on', or similar, Git LFS will skip the |
| 446 |
pre-push hook, so no new Git LFS objects will be uploaded. If unset, or |
| 447 |
set to 'false', '0', 'off', or similar, Git LFS will proceed as normal. |
| 448 |
* `GIT_LFS_SET_LOCKABLE_READONLY` `lfs.setlockablereadonly` |
| 449 |
+ |
| 450 |
These settings, the first an environment variable and the second a |
| 451 |
gitconfig setting, control whether files marked as 'lockable' in |
| 452 |
`git lfs track` are made read-only in the working copy when not locked |
| 453 |
by the current user. The default is `true`; you can disable this |
| 454 |
behaviour and have all files writeable by setting either variable to 0, |
| 455 |
'no' or 'false'. |
| 456 |
* `lfs.lockignoredfiles` |
| 457 |
+ |
| 458 |
This setting controls whether Git LFS will set ignored files that match |
| 459 |
the lockable pattern read only as well as tracked files. The default is |
| 460 |
`false`; you can enable this behavior by setting the variable to 1, |
| 461 |
'yes', or 'true'. |
| 462 |
* `lfs.defaulttokenttl` |
| 463 |
+ |
| 464 |
This setting sets a default token TTL when git-lfs-authenticate does not |
| 465 |
include the TTL in the JSON response but still enforces it. |
| 466 |
+ |
| 467 |
Note that this is only necessary for larger repositories hosted on LFS |
| 468 |
servers that don't include the TTL. |
| 469 |
|
| 470 |
== LFSCONFIG |
| 471 |
|
| 472 |
The .lfsconfig file in a repository is read and interpreted in the same |
| 473 |
format as the file stored in .git/config. It allows a subset of keys to |
| 474 |
be used, including and limited to: |
| 475 |
|
| 476 |
* lfs.allowincompletepush |
| 477 |
* lfs.fetchexclude |
| 478 |
* lfs.fetchinclude |
| 479 |
* lfs.gitprotocol |
| 480 |
* lfs.locksverify |
| 481 |
* lfs.pushurl |
| 482 |
* lfs.skipdownloaderrors |
| 483 |
* lfs.url |
| 484 |
* lfs.\{*}.access |
| 485 |
* remote.\{name}.lfsurl |
| 486 |
|
| 487 |
The set of keys allowed in this file is restricted for security reasons. |
| 488 |
|
| 489 |
== EXAMPLES |
| 490 |
|
| 491 |
* Configure a custom LFS endpoint for your repository: |
| 492 |
|
| 493 |
`git config -f .lfsconfig lfs.url https://lfs.example.com/foo/bar/info/lfs` |
| 494 |
|
| 495 |
== SEE ALSO |
| 496 |
|
| 497 |
git-config(1), git-lfs-install(1), git-lfs-standalone-file(1), gitattributes(5), gitignore(5). |
| 498 |
|
| 499 |
Part of the git-lfs(1) suite. |