GIT LFS 세팅

DevBison·2025년 12월 6일

요약: Git LFS는 git lfs installgit lfs track → 커밋 순서로 설정한다.

Git LFS(Git Large File Storage)를 프로젝트에 적용할 때 기본적으로 필요한 명령어들을 가장 깔끔한 흐름대로 정리해준다.


1. LFS 설치(처음 한 번만)

git lfs install

2. 특정 확장자를 LFS로 관리(예: .psd, .png 등)

git lfs track "*.psd"
git lfs track "*.png"
git lfs track "*.uasset"
git lfs track "*.umap"

Unreal Engine 프로젝트라면 보통 이렇게:

git lfs track "*.uasset"
git lfs track "*.umap"

3. .gitattributes 확인

위 명령을 실행하면 자동으로 아래처럼 .gitattributes가 생성·수정된다.

cat .gitattributes

4. 변경 사항 커밋

git add .gitattributes
git commit -m "Add Git LFS tracking"

5. 기존 대용량 파일을 LFS로 전환(옵션)

이미 커밋된 파일을 LFS로 옮기려면:

git lfs migrate import --include="*.uasset,*.umap"

6. 정상 작동 확인

git lfs ls-files

Unreal Engine 프로젝트용 추천 설정 요약

git lfs install
git lfs track "*.uasset"
git lfs track "*.umap"
git add .gitattributes
git commit -m "Setup LFS for Unreal Engine"

필요하면 추가로 사용하는 확장자도 LFS에 넣으면 된다.

profile
응애 개발자

0개의 댓글