Unity

[Unity] Github용 Ignore Edit

Guk-blog 2021. 2. 23. 15:40
728x90
반응형

.gitattributes
0.00MB
.gitignore
0.00MB

Scene과 Script, Prefab만 푸시하고 나머진 제외하는 Ignore

 

GitIgnore

# This .gitignore file should be placed at the root of your Unity project directory
#
# Get latest from https://github.com/github/gitignore/blob/master/Unity.gitignore
#
/[Ll]ibrary/
/[Tt]emp/
/[Oo]bj/
/[Bb]uild/
/[Bb]uilds/
/[Ll]ogs/
/[Mm]emoryCaptures/
/MentalCare_CNU/[Ll]ibrary/
/MentalCare_CNU/[Tt]emp/
/MentalCare_CNU/[Ll]og/
/MentalCare_CNU/[Bb]uild/
/MentalCare_CNU/[Bb]uilds/
/MentalCare_CNU/[Oo]bj/


# Never ignore Asset meta data
!/[Aa]ssets/**/*.meta

# 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
*.txt
*.pdf


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

# Unity3D generated file on crash reports
sysinfo.txt

# Builds
*.apk
*.unitypackage

# Crashlytics generated file
crashlytics-build.properties

*.meta
*.wav
*.mp3
*.jpg
*.FBX
*.controller
*.png
*.jpeg
*.mat
*.physicMaterial
*.lighting
*.asset
*.hdr
*.mp4
*.renderTexture
*.terrainlayer
*.bin
*.exr
*.cginc
*.asmdef
*.tga
*.shader
*.bmp
*.obj
*.tif
*.ptx
*.dll
*.exe
*.pso
*.lz4
*.vso
*.gso
*.tiff
*.tiff
*.psd
*.flare
*.compute
*.guiskin
*.preset
*.mask
*.raw
*.ttf
*.anim
*.properties
*.jar
*.so
*.zip
*.xml
*.mixer
*.mixer
*.otf
*.db
*.spm
*.json
*.dat
*.graph
*.info
*.log
*.resource
*.resS
*.sharedAssets
*.bundle
*.prefs
*.dwlt
*.13f1 (d4ddf0d95db9)
*.o
*.buildreport
*.md
*.uss
*.yml
*.a
*.hlsl
*.cube
*.aar
*.config
*.unity3d
*.yaml
*.assets
*.stamp
*.catalog
*.cache
*.force
*.CopyComplete
*.pref
*.pref

 

GitAttributes

# Macro for Unity YAML-based asset files.
[attr]unityyaml -text merge=unityyamlmerge diff
# Macro for all binary files that should use Git LFS.
[attr]lfs -text filter=lfs diff=lfs merge=lfs
# Default to auto-normalized line endings.
* text=auto
# Code
*.cs text diff=csharp
# Unity Text Assets
*.meta unityyaml
*.unity filter=lfs diff=lfs merge=lfs -text
*.asset unityyaml
*.prefab unityyaml
*.mat unityyaml
*.anim unityyaml
*.controller unityyaml
*.overrideController unityyaml
*.physicMaterial unityyaml
*.physicsMaterial2D unityyaml
*.playable unityyaml
*.mask unityyaml
*.brush unityyaml
*.flare unityyaml
*.fontsettings unityyaml
*.guiskin unityyaml
*.giparams unityyaml
*.renderTexture unityyaml
*.spriteatlas unityyaml
*.terrainlayer unityyaml
*.mixer unityyaml
*.shadervariants unityyaml
*.preset unityyaml
*.asmdef -text diff
# Unity Binary Assets
*.cubemap lfs
*.unitypackage lfs
# Note: Unity terrain assets must have "-Terrain" suffix.
*-[Tt]errain.asset -unityyaml lfs
# Note: Unity navmesh assets must have "-NavMesh" suffix.
*-[Nn]av[Mm]esh.asset -unityyaml lfs
# Image
*.jpg lfs
*.jpeg lfs
*.png lfs
*.apng lfs
*.atsc lfs
*.gif lfs
*.bmp lfs
*.exr lfs
*.tga lfs
*.tiff lfs
*.tif lfs
*.iff lfs
*.pict lfs
*.dds lfs
*.xcf lfs
*.leo lfs
*.kra lfs
*.kpp lfs
*.clip lfs
*.webm lfs
*.webp lfs
*.svg lfs
*.svgz lfs
*.psd lfs
*.afphoto lfs
*.afdesign lfs
# Audio
*.mp3 lfs
*.ogg lfs
*.wav lfs
*.aiff lfs
*.aif lfs
*.mod lfs
*.it lfs
*.s3m lfs
*.xm lfs
# Video
*.mov lfs
*.avi lfs
*.asf lfs
*.mpg lfs
*.mpeg lfs
*.mp4 lfs
*.flv lfs
*.ogv lfs
*.wmv lfs
# 3D
*.fbx lfs
*.obj lfs
*.max lfs
*.blend lfs
*.blender lfs
*.dae lfs
*.mb lfs
*.ma lfs
*.3ds lfs
*.dfx lfs
*.c4d lfs
*.lwo lfs
*.lwo2 lfs
*.abc lfs
*.3dm lfs
*.bin lfs
*.glb lfs
# Executables
*.exe lfs
*.dll lfs
*.so lfs
*.pdb lfs
*.mdb lfs
# Packaging
*.zip lfs
*.7z lfs
*.gz lfs
*.rar lfs
*.tar lfs
*.unity lfs
728x90
반응형