๐ŸŽฎ Unity Study/Unity

[Unity .gitignore] Unity .gitignore ํŒŒ์ผ ๋งŒ๋“ค๊ธฐ

ibelieveinme 2022. 10. 20. 11:35
728x90

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

 

GitHub - github/gitignore: A collection of useful .gitignore templates

A collection of useful .gitignore templates. Contribute to github/gitignore development by creating an account on GitHub.

github.com

# 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 ํŒŒ์ผ๋ช…์œผ๋กœ ํ…์ŠคํŠธ ํŒŒ์ผ ๋งŒ๋“ค์–ด ๋†“๊ณ  ์ปค๋ฐ‹ํ•˜๋ฉด ๋œ๋‹น.

 

 

 

728x90