Article version: Enterprise Server 2.14

This version of GitHub Enterprise will be discontinued on This version of GitHub Enterprise was discontinued on 2019-07-12. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features, upgrade to the latest version of GitHub Enterprise. For help with the upgrade, contact GitHub Enterprise support.

Configuring Git Large File Storage

Once Git LFS is installed, you need to associate it with a large file in your repository.

In this guide

About Git Large File Storage

Git Large File Storage (Git LFS) is an open source extension to Git that allows you to work with large files the same way as other text files. You can use Git Large File Storage with a single repository, all of your personal or organization repositories, or with every repository in your GitHub Enterprise Server instance. Before you can enable Git LFS for specific repositories or organizations, you need to enable Git LFS for your appliance.

By default, the Git Large File Storage client stores large assets on the same server that hosts the Git repository. When Git LFS is enabled on the GitHub Enterprise Server appliance, large assets are stored on the data partition in /data/user/storage.

Users cannot push Git LFS assets to GitHub Enterprise Server if Git LFS is disabled on the appliance or repository.

For more information, see "About Git Large File Storage", "Versioning large files," and the Git Large File Storage project site.

Configuring Git Large File Storage for your appliance

  1. In the upper-right corner of any page, click .

    Rocketship icon for accessing site admin settings

  2. In the left sidebar, click Admin center.

    Admin Center tab

  3. Under "Git LFS access", use the drop-down menu, and click Enabled or Disabled.

    Git LFS Access

Configuring Git Large File Storage for an individual repository

Note: Each repository automatically inherits default settings from the organization or user that owns it. You cannot override the default setting if the repository's owner has enforced the setting on all of their repositories.

  1. In the upper-right corner of any page, click .

    Rocketship icon for accessing site admin settings

  2. In the search field, type the name of the repository and click Search.

    Site admin settings search field

  3. In the search results, click the name of the repository.

    Site admin settings search options

  4. In the upper-right corner of the page, click Admin.

    Admin Tools

  5. In the left sidebar, click Admin.

    Admin Tools

  6. Under "Git LFS", click Enable or Disable.

    Disable button

Configuring Git Large File Storage for every repository owned by a user account or organization

  1. In the upper-right corner of any page, click .

    Rocketship icon for accessing site admin settings

  2. In the search field, type the name of the user or organization and click Search.

    Site admin settings search field

  3. In the search results, click the name of the user or organization.

    Site admin settings search options

  4. In the upper-right corner of the page, click Admin.

    Admin Tools

  5. In the left sidebar, click Admin.

    Admin Tools

  6. Under "Git LFS", click Enable or Disable.

    Disable button

Ask a human

Can't find what you're looking for?

Contact us