본문 바로가기

[Unreal] git 푸시 시 용량 초과 오류 ( Large files detected. You may want to try git large file storage )

Kwonriver 2022. 1. 19.
728x90

 

언리얼 프로젝트를 가감없이 git에 푸시하려고 하면 용량 초과로 인해 실패하게 된다.

git 허용 용량인 100mb를 초과하여 발생한 에러

Large files detected. You may want to try git large file storage 라는 문구가 나오는데 결과적으로 100mb 이상의 파일을 올리고 싶으면 돈을 더 내라 라는 말이다.

 

초과한 파일들을 보면 intermediate 폴더에 있는 파일인데 intermediate 폴더 자체가 임시파일 저장소 같은 곳이므로 삭제해도 된다.

 

언리얼 C++ 디렉토리 중 제거하여도 무방한 파일 및 폴더
아래 파일들은 삭제하여도 프로젝트를 실행하면 다시 생성된다.

Saved : 자동 저장, 로그, 스크린샷 등 저장 관련 폴더
Intermediate : 임시 파일 관련 폴더 (VS 프로젝트 파일이 저장)
Build : 패키징하면 생기는 파일
.vs : vs 파일
프로젝트명.sln : 프로젝트 비주얼 스튜디오 파일

위 파일들을 삭제하고 커밋하면 문제가 해결되겠지만 커밋할 때 마다 삭제하는 것은 너무나 고역이므로 .gitignore*를 사용하여 해당 파일들을 무시하자.

.gitignore에 추가할 만한 것들

/Saved
/Intermediate
/.vs
/Build
*.sln

 

저것들만 추가해도 임시파일들은 대부분 깃 서버에 올라가지 않고 무시되지만 깃 저장소 등록시 언리얼 프로젝트 관련 .gitignore를 깃으로부터 받을 수 있다.

아래는 해당 내용이다.

# Visual Studio 2015 user specific files
.vs/

# Compiled Object files
*.slo
*.lo
*.o
*.obj

# Precompiled Headers
*.gch
*.pch

# Compiled Dynamic libraries
*.so
*.dylib
*.dll

# Fortran module files
*.mod

# Compiled Static libraries
*.lai
*.la
*.a
*.lib

# Executables
*.exe
*.out
*.app
*.ipa

# These project files can be generated by the engine
*.xcodeproj
*.xcworkspace
*.sln
*.suo
*.opensdf
*.sdf
*.VC.db
*.VC.opendb

# Precompiled Assets
SourceArt/**/*.png
SourceArt/**/*.tga

# Binary Files
Binaries/*
Plugins/*/Binaries/*

# Builds
Build/*

# Whitelist PakBlacklist-<BuildConfiguration>.txt files
!Build/*/
Build/*/**
!Build/*/PakBlacklist*.txt

# Don't ignore icon files in Build
!Build/**/*.ico

# Built data for maps
*_BuiltData.uasset

# Configuration files generated by the Editor
Saved/*

# Compiled source files for the engine to use
Intermediate/*
Plugins/*/Intermediate/*

# Cache files for the editor to use
DerivedDataCache/*

 

 

*https://kwonriver.tistory.com/32

 

[Git/SourceTree] .gitIgnore 적용하기

더보기 .gitignore란? 여러가지 이유로 깃 서버에 올라가서는 안되는 파일들이 존재한다. ( 용량이 너무 크거나, 보안상의 이유 등 ) .gitignore는 그런 파일들을 .gitignore에 등록하여 깃 서버로 올리지

kwonriver.tistory.com

 

728x90