1
0
mirror of synced 2025-12-21 19:06:49 -05:00
Files
docs/content/rest/repos/lfs.md

2.4 KiB

title, shortTitle, intro, versions, topics, allowTitleToDifferFromFilename, autogenerated
title shortTitle intro versions topics allowTitleToDifferFromFilename autogenerated
REST API endpoints for Git LFS Git LFS Use the REST API to enable or disable {% data variables.large_files.product_name_long %} (LFS) for a repository.
ghec ghes
* *
API
true rest

About {% data variables.large_files.product_name_short %}

You can use {% data variables.large_files.product_name_short %} to store large files in a Git repository. The REST API allows you to enable or disable the feature for an individual repository. For more information about {% data variables.large_files.product_name_short %}, see AUTOTITLE.

People with admin access to a repository can use these endpoints.

{% ifversion fpt or ghec %}

Usage of {% data variables.large_files.product_name_short %} is subject to billing. For more information, see AUTOTITLE.

If you want to use these endpoints for a repository that belongs to an organization, you must have admin access to the repository (which can be inherited as an organization owner), and your role must also provide you with access to the organization's billing.

{% ifversion ghec %}

  • If repository is owned by an organization on {% data variables.product.prodname_team %}, you must be an organization owner or billing manager. For more information, see AUTOTITLE.
  • If repository is owned by an organization that is on {% data variables.product.prodname_ghe_cloud %} and is not owned by an enterprise account, you must be an organization owner or billing manager. For more information, see AUTOTITLE.
  • If repository is owned by an organization that is owned by an enterprise account, you must be an enterprise owner or billing manager. For more information, see AUTOTITLE.

{% endif %}

{% endif %}