기타/Git

[Git] LFS 사용방법

나는야 개발자 2025. 4. 30. 12:00
반응형

LFS란?

- 대용량 파일 버전 관리를 위한 오픈 소스 Git 확장 프로그램

 

사용처

- 100MB가 넘는 파일을 Commit 및 Push할때 사용

 

다운로드 방법

- LFS 다운로드 링크 : 바로가기

 

Git Large File Storage

Git Large File Storage (LFS) replaces large files such as audio samples, videos, datasets, and graphics with text pointers inside Git, while storing the file contents on a remote server like GitHub.com or GitHub Enterprise.

git-lfs.com

 

설정

- LFS를 설치할 Git Repogitory 우클릭 후 Open Git Bash here 클릭

 

- git lfs install 입력 후 Enter

 

- git lfs track "*.확장자" 엔터하여 원하는 확장자 입력

 

- "git add 경로/파일.확장자" 입력 후 엔터

 

- git commit -m "커밋 내용" 엔터

 

- git push를 하거나 Git Desktop을 이용해 push하면 완료

 

참고링크

- 바로가기

 

Installing Git Large File Storage - GitHub Docs

In order to use Git LFS, you'll need to download and install a new program that's separate from Git.

docs.github.com

 

반응형