Last active
August 28, 2025 05:20
-
-
Save PAHeartBeat/f9896883d61314c61ebd630325ccb501 to your computer and use it in GitHub Desktop.
sampale .gitignore for unity project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Basic Unity Project Files Settings # | |
| # ---------------------------------- # | |
| # Packed Addressable # | |
| # ------------------ # | |
| !/Assets/AddressableAssetsData/*/*.bin* | |
| # Library Data # | |
| # ------------ # | |
| .utmp/* | |
| Library/* | |
| !Library/EditorUserBuildSettings.asset | |
| # User and Project Settings # | |
| # ------------------------- # | |
| **/UserSettings/* | |
| **/ProjectSettings/Packages/* | |
| # Unity3D meta files # | |
| # ----------------- # | |
| !*.meta | |
| # Unity3D generated # | |
| # ----------------- # | |
| **/Temp/* | |
| **/Temp.meta | |
| **/Logs/* | |
| **/Logs.meta | |
| **/temp/* | |
| **/temp.meta | |
| **/logs/* | |
| **/logs.meta | |
| **/build_info | |
| **/build_info.meta | |
| !*.unitypackage | |
| # Unity3D Crash Reports # | |
| # --------------------- # | |
| sysinfo.txt | |
| mono_crash* | |
| *.unityproj | |
| *.csproj | |
| *.booproj | |
| ExportedObj/ | |
| exportedObj/ | |
| # ----------------------------------------- | |
| # Demo / Sample / Reference Files # | |
| # ------------------------------- # | |
| *.zip | |
| # Demo # | |
| # ---- # | |
| **/Demo | |
| **/Demo/ | |
| **/Demo.meta | |
| **/Demos | |
| **/Demos/ | |
| **/Demos.meta | |
| # Sample(s) # | |
| # --------- # | |
| **/Sample | |
| **/Sample/ | |
| **/Sample.meta | |
| **/Samples | |
| **/Samples/ | |
| **/Samples.meta | |
| # Reference # | |
| # --------- # | |
| **/Ref | |
| **/Ref/ | |
| **/Ref.meta | |
| **/Reference | |
| **/Reference/ | |
| **/Reference.meta | |
| **/Reference* | |
| **/Reference*/ | |
| **/Reference*.meta | |
| **/Ref_* | |
| **/Ref_*/ | |
| **/Ref_*.meta | |
| # Feedback # | |
| # -------- # | |
| **/Feedback | |
| **/Feedback/ | |
| **/Feedback.meta | |
| # Dev Assets # | |
| # ---------- # | |
| **/DevAssets | |
| **/DevAssets/ | |
| **/DevAssets.meta | |
| **/Dev_Assets | |
| **/Dev_Assets/ | |
| **/Dev_Assets.meta | |
| # ----------------------------------------- | |
| # MonoDevelop generated # | |
| # --------------------- # | |
| *.userprefs | |
| *.usertasks | |
| #Mono Project Files | |
| *.pidb | |
| *.pidb.meta | |
| *.resources | |
| test-results/ | |
| # --------------------------------------- | |
| # Visual Studio generated # | |
| # ----------------------- # | |
| .vscode/* | |
| .vs/* | |
| *.VC.db | |
| .consulo/ | |
| *.svd | |
| *.csproj | |
| *.sln | |
| *.pidb | |
| *.suo | |
| *.user | |
| *.tmp | |
| # ----------------------------------------- | |
| # Target Build Files # | |
| # ------------------ # | |
| **/Builds | |
| **/build | |
| *.apk | |
| *.aab | |
| *.app | |
| *.ipa | |
| *.exe | |
| /XCode* | |
| DerivedData/ | |
| # ----------------------------------------- | |
| # MAC OS X generated # | |
| # ------------------ # | |
| .DS_Store | |
| .DS_Store? | |
| ._* | |
| .Spotlight-V100 | |
| .Trashes | |
| ehthumbs.db | |
| Thumbs.db | |
| # ----------------------------------------- | |
| # Windows Generated Files # | |
| # ---------------------- # | |
| # Folder config file | |
| Desktop.ini | |
| # Recycle Bin used on file shares | |
| $RECYCLE.BIN/ | |
| # Windows Installer files | |
| *.cab | |
| *.msi | |
| *.msm | |
| *.msp | |
| # Windows shortcuts | |
| *.lnk | |
| # ----------------------------------------- | |
| # Linux Generated Files # | |
| # ---------------------- # | |
| .fuse_hidden* | |
| .directory | |
| .Trash-* | |
| .nfs* | |
| # ----------------------------------------- | |
| # Build results | |
| **/Debug/ | |
| **/DebugPublic/ | |
| **/Release/ | |
| **/Releases/ | |
| **/Build | |
| **/Bin/ | |
| **/bin/ | |
| **/Obj/ | |
| **/obj/ | |
| # Visual Studio Code cache/options directory | |
| **/.vscode/** | |
| !**/.vscode/extensions.json | |
| !**/.vscode/launch.json | |
| !**/.vscode/tasks.json | |
| ## Ignore Visual Studio temporary files, build results, and | |
| ## files generated by popular Visual Studio add-on. | |
| # Visual Studio cache/options directory | |
| **/.vs/** | |
| # Visual Studio profiler | |
| *.psess | |
| *.vsp | |
| *.vspx | |
| *.sap | |
| # Visual Studio cache files | |
| # files ending in .cache can be ignored | |
| *.[Cc]ache | |
| # but keep track of directories ending in .cache | |
| !*.[Cc]ache/ | |
| # Uncomment if you have tasks that create the project's static files in www-root | |
| wwwroot/ | |
| # MSTest test Results | |
| **/TestResult*/ | |
| **/BuildLog.* | |
| # ReSharper is a .NET coding add-in | |
| _ReSharper*/ | |
| *.[Rr]e[Ss]harper | |
| *.DotSettings.user | |
| # Click-Once directory | |
| publish/ | |
| # Publish Web Output | |
| *.Publish.xml | |
| *.azurePubxml | |
| # but database connection strings (with potential passwords) will be unencrypted | |
| *.pubxml | |
| *.publishproj | |
| # MemoryCaptures can get excessive in size. | |
| # They also could contain extremely sensitive data | |
| /[Mm]emoryCaptures/ | |
| # Recordings can get excessive in size | |
| /Recordings/ | |
| # NuGet Packages | |
| *.nupkg | |
| # except build/, which is used as an MSBuild target. | |
| !**/packages/build/ | |
| # Uncomment if necessary however generally it will be regenerated when needed | |
| #!**/packages/repositories.config | |
| # NuGet v3's project.json files produces more ignorable files | |
| *.nuget.props | |
| *.nuget.targets | |
| # Other Settings # | |
| # -------------- # | |
| /Screenshots/ | |
| *.unitypackage |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment