Git LFS에 대한 REST API 엔드포인트
REST API를 사용하여 리포지토리에 Git 대용량 파일 스토리지(LFS)를 사용하거나 사용하지 않도록 설정합니다.
Git LFS 정보
Git LFS을(를) 사용하여 Git 리포지토리에 큰 파일 보고서를 저장할 수 있습니다. REST API를 사용하면 개별 리포지토리에 대한 기능을 사용하거나 사용하지 않도록 설정할 수 있습니다. Git LFS에 대한 자세한 내용은 Git 대용량 파일 저장소에 대하여을(를) 참조하세요.
리포지토리에 대한 관리자 액세스 권한이 있는 사용자는 이러한 엔드포인트를 사용할 수 있습니다.
Enable Git LFS for a repository
Enables Git LFS for a repository.
OAuth app tokens and personal access tokens (classic) need the site_admin scope to use this endpoint.
fine_grained_access
no_fine_grained_access
"Enable Git LFS for a repository"에 대한 매개 변수
| 이름, 유형, 설명 |
|---|
accept string Setting to |
| 이름, 유형, 설명 |
|---|
owner string 필수The account owner of the repository. The name is not case sensitive. |
repo string 필수The name of the repository without the |
http_status_code
| status_code | 설명 |
|---|---|
202 | Accepted |
403 | We will return a 403 with one of the following messages:
|
code_samples
request_example
curl -L \
-X PUT \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer <YOUR-TOKEN>" \
-H "X-GitHub-Api-Version: 2026-03-10" \
http(s)://HOSTNAME/api/v3/repos/OWNER/REPO/lfsAccepted
Status: 202Disable Git LFS for a repository
Disables Git LFS for a repository.
OAuth app tokens and personal access tokens (classic) need the site_admin scope to use this endpoint.
fine_grained_access
no_fine_grained_access
"Disable Git LFS for a repository"에 대한 매개 변수
| 이름, 유형, 설명 |
|---|
accept string Setting to |
| 이름, 유형, 설명 |
|---|
owner string 필수The account owner of the repository. The name is not case sensitive. |
repo string 필수The name of the repository without the |
http_status_code
| status_code | 설명 |
|---|---|
204 | No Content |
code_samples
request_example
curl -L \
-X DELETE \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer <YOUR-TOKEN>" \
-H "X-GitHub-Api-Version: 2026-03-10" \
http(s)://HOSTNAME/api/v3/repos/OWNER/REPO/lfsResponse
Status: 204