Unity ํ๋ก์ ํธ๋ฅผ ๋ง๋ค๋ฉด ์๋์ผ๋ก ์์ฑ๋๋ ํ์ผ๋ค์ด ์๋ค. ์๋ 6๊ฐ.
Temp
Library
Assets
ProjectSettings
Logs
Packages
์ด ๋, Assets, ProjectSettings, Packages ํ์ผ๋ง ์์ผ๋ฉด ๋ค๋ฅธ ํ์ผ๋ค์ meta ํ์ผ๊ณผ cash ์ ์ํด ์์์ ๋ง๋ค์ด ์ง๋ค.
์ฆ, ๋ค๋ฅธ ํด๋๋ฅผ Git์ ์ฌ๋ฆฌ๋ฉด ์๋ฒ ์ฉ๋๋ง ์ฐจ์งํ ๋ฟ ํ์๊ฐ ์๋ค๋ ๋ป! .gitignore ํ์ผ์ ๋ง๋ค์ด์ ์์ ๋ฒ๋ฆฌ์~
1. Github ์ฌ์ดํธ์์ ์ ๊ณตํ๋ .gitignore ํ์ผ ๋ชฉ๋ก์์ Unity.gitignore ํ์ผ ๋ค์ด๋ก๋ or ๋ด์ฉ ๋ณต์ฌ
https://github.com/github/gitignore
# 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/*
์ฝ๋๋ณด๋ฉด .gitignore ํ์ผ์ด ์ด๋์ ์์นํด์ผ ํ๋์ง, ์ด๋ค ํ์ผ๋ค์ ์ ๊ฑฐํ๋์ง ์ฃผ์์ผ๋ก ์ ์ค๋ช ๋์ด ์์.
์ฃผ์ํ ์ ์ ์์ ์ ๊ฑฐํ๋ค๊ณ ์ ์ด๋์ ํด๋๋ช ์ผ๋ก ํด๋๋ฅผ ๋ง๋ค์ง๋ ์์๋์ง, ์ ๊ฑฐํ์ง ์์์ผํ ํ์ผ๋ค์ด ์๋์ง๋ฅผ ํ์ ํด์ผ ํ๋ค.
2. Unity Asset ํด๋ ์๋ root ๊ฒฝ๋ก์ Unity.gitignore ํ์ผ๋ช ์ Unity๊ธ์๋ฅผ ์ง์ฐ๊ณ .gitignore ํ์ผ๋ช ์ผ๋ก ํ ์คํธ ํ์ผ ๋ง๋ค์ด ๋๊ณ ์ปค๋ฐํ๋ฉด ๋๋น.
'๐ฎ Unity Study > Unity' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[Unity] Scrollrect ์ปดํฌ๋ํธ๋ก Scrollview ๋ง๋ค๊ธฐ (0) | 2022.11.17 |
---|---|
[Unity] TextMeshPro ํฐํธ์ถ๊ฐ ๋ฐ ํ๊ธ์ ๋ ฅ (0) | 2022.11.09 |
[Unity ์ด๋ฏธ์ง ์ต์ ํ] Unity ์ด๋ฏธ์ง ์ต์ ํ ์ฐธ๊ณ (0) | 2022.10.13 |
[Unity][Unity Script serialization] SerializeField, Serializable, HideInInspector (0) | 2022.10.12 |
[Unity] Unity Log ์ข ๋ฅ (0) | 2022.10.07 |