Skip to content

Instantly share code, notes, and snippets.

@vivi90
Last active May 30, 2021 15:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vivi90/086c4b9dfbad19b8c26b4658f6c377a6 to your computer and use it in GitHub Desktop.
Save vivi90/086c4b9dfbad19b8c26b4658f6c377a6 to your computer and use it in GitHub Desktop.
.gitignore file for Unity projects
# This .gitignore file should be placed at the root of the Unity project directory
#
# Modified from:
# https://github.com/github/gitignore/blob/master/Unity.gitignore
# https://github.com/github/gitignore/blob/master/Global/Windows.gitignore
# https://github.com/github/gitignore/blob/master/Global/Linux.gitignore
# https://github.com/github/gitignore/blob/master/Global/macOS.gitignore
#
/[Ll]ibrary/
/[Tt]emp/
/[Oo]bj/
/[Bb]inary/
/[Bb]uild/
/[Bb]uilds/
/[Ll]ogs/
/[Uu]ser[Ss]ettings/
/[Rr]ecorded [Mm]ovies/
/[Ss]creenshots/
/[Mm]emory[Cc]aptures/
# Asset store tools plugin
/[Aa]ssets/AssetStoreTools*
# Autogenerated JetBrains Rider plugin
/[Aa]ssets/Plugins/Editor/JetBrains*
# Asset meta data should only be ignored when the corresponding asset is also ignored
!/[Aa]ssets/**/*.[Mm][Ee][Tt][Aa]
# JetBrains Rider settings
.idea/
# Visual Studio Code settings
.vscode/
# Visual Studio settings
.vsconfig
# Visual Studio cache
.vs/
# Gradle cache
.gradle/
# Autogenerated VS/MD/Consulo solution and project files
[Ee]xported[Oo]bj/
.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
# Dump file
*.stackdump
# Baked occlusion culling data
OcclusionCullingData.asset*
# Builds
*.[Ee][Xx][Ee]
*.[Aa][Pp][Kk]
*.[Aa][Aa][Bb]
*.unitypackage
# 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/*
# Windows thumbnail cache files
[Tt]humbs.db
[Tt]humbs.db.meta
[Tt]humbs.db:encryptable
[Ee]hthumbs.db
[Ee]hthumbs_vista.db
# Windows Folder config file
[Dd]esktop.[Ii][Nn][Ii]
# Windows Installer files
*.[Cc][Aa][Bb]
*.[Mm][Ss][Ii]
*.msix
*.msm
*.msp
# Windows shortcuts
*.[Ll][Nn][Kk]
# Recycle Bin used on file shares
$RECYCLE.BIN/
# Temporary Linux files
*~
# Temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*
# KDE directory preferences
.directory
# Linux trash folder which might appear on any partition or disk
.[Tt]rash-*
# .nfs files are created when an open file is removed but is still being accessed
.nfs*
# Mac OS files
.[Dd][Ss]_[Ss]tore
.[Aa]pple[Dd]ouble
.[Ll][Ss][Oo]verride
# Icon must end with two \r
Icon
# Thumbnails
._*
# Files that might appear in the root of a volume
.[Dd]ocument[Rr]evisions-V100
.fseventsd
.[Ss]potlight-[Vv]100
.[Tt]emporary[Ii]tems
.[Tt]rashes
.[Vv]olume[Ii]con.icns
.com.apple.timemachine.donotpresent
# Directories potentially created on remote AFP share
.[Aa]pple[Dd][Bb]
.[Aa]pple[Dd]esktop
[Nn]etwork [Tt]rash [Ff]older
[Tt]emporary [Ii]tems
.apdisk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment