요약: Git LFS는 git lfs install → git lfs track → 커밋 순서로 설정한다.
Git LFS(Git Large File Storage)를 프로젝트에 적용할 때 기본적으로 필요한 명령어들을 가장 깔끔한 흐름대로 정리해준다.
git lfs install
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"
.gitattributes 확인위 명령을 실행하면 자동으로 아래처럼 .gitattributes가 생성·수정된다.
cat .gitattributes
git add .gitattributes
git commit -m "Add Git LFS tracking"
이미 커밋된 파일을 LFS로 옮기려면:
git lfs migrate import --include="*.uasset,*.umap"
git lfs ls-files
git lfs install
git lfs track "*.uasset"
git lfs track "*.umap"
git add .gitattributes
git commit -m "Setup LFS for Unreal Engine"
필요하면 추가로 사용하는 확장자도 LFS에 넣으면 된다.