Skip to content

Disable local LFS cache? #2147

@sageinblue

Description

@sageinblue

Hi there, been looking for a way to disable the local LFS cache. Apologies if this is a duplicate issue.

Basically our Art team has been using Perforce for some time, and we are hoping we can get Git to emulate Perforce's behavior. I am looking to disable local caching of any and all LFS objects in .git/lfs/objects. This would force read-through to the remote LFS store for all checkouts, pulls, clones, stashes, and so on. Our repos are very big (anywhere up to 250 GB) so having the lfs cache of even one revision effectively doubles the footprint on disk, which is not practical for our environment.

Is there a config setting I maybe missed that allows git LFS to behave this way? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementhelp-wantedThe core team would like assistance in implementing this feature.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Enhancements

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions