본문 바로가기
  • Being.Doing
  • Being.Doing
  • Being.Doing
사랑스럽고 바보같은 실패들/내가 봉착했던 난관들

git 의 몸무게 줄이기 (feat. git ignore)

by MQ_CHOI 2022. 5. 18.

항상 체크인을 하면서, 라이브러리가 참 무거워서 골칫덩어리였는데,

gitignore를 깜박하고 repo에 넣어주지 않았어서 인터넷에서 서치한뒤

 

 

 

직접작성해서 아래 코드조각을 추가해 주었다.

(꼭 .txt 확장자를 지워서 저장한뒤 커밋 푸쉬해줘야한다.)

 

모래주머니를 풀어주니 한결 가벼워짐을 느낀다.

 

# This .gitignore file should be placed at the root of your Unity project directory
#
# Get latest from https://github.com/github/gitignore/blob/main/Unity.gitignore
#
[Ll]ibrary/
[Tt]emp/
[Oo]bj/
[Bb]uild/
[Bb]uilds/
[Ll]ogs/
[Uu]ser[Ss]ettings/

# MemoryCaptures can get excessive in size.
# They also could contain extremely sensitive data
/[Mm]emoryCaptures/

# Recordings can get excessive in size
/[Rr]ecordings/

# Uncomment this line if you wish to ignore the asset store tools plugin
# /[Aa]ssets/AssetStoreTools*

# Autogenerated Jetbrains Rider plugin
/[Aa]ssets/Plugins/Editor/JetBrains*

# Visual Studio cache directory
.vs/

# Gradle cache directory
.gradle/

# Autogenerated VS/MD/Consulo solution and project files
ExportedObj/
.consulo/
*.csproj
*.unityproj
*.sln
*.suo
*.tmp
*.user
*.userprefs
*.pidb
*.booproj
*.svd
*.pdb
*.mdb
*.opendb
*.VC.db

# Unity3D generated meta files
*.pidb.meta
*.pdb.meta
*.mdb.meta

# Unity3D generated file on crash reports
sysinfo.txt

# Builds
*.apk
*.aab
*.unitypackage
*.app

# Crashlytics generated file
crashlytics-build.properties

# Packed Addressables
/[Aa]ssets/[Aa]ddressable[Aa]ssets[Dd]ata/*/*.bin*

# Temporary auto-generated Android Assets
/[Aa]ssets/[Ss]treamingAssets/aa.meta
/[Aa]ssets/[Ss]treamingAssets/aa/*

댓글


loading