Skip to content

Instantly share code, notes, and snippets.

@rafayali
Created August 9, 2017 07:54
Show Gist options
  • Save rafayali/e0a75056803ab1ff6f59ac06f7f87a13 to your computer and use it in GitHub Desktop.
Save rafayali/e0a75056803ab1ff6f59ac06f7f87a13 to your computer and use it in GitHub Desktop.
.gitignore for Unity 2017 projects using VS 2017
/[Ll]ibrary/
/[Tt]emp/
/[Oo]bj/
/[Bb]uild/
/[Bb]uilds/
/Assets/AssetStoreTools*
# Visual Studio 2015 cache directory
/.vs/
# Autogenerated VS/MD/Consulo solution and project files
ExportedObj/
.consulo/
*.csproj
*.unityproj
*.sln
*.suo
*.tmp
*.user
*.userprefs
*.pidb
*.booproj
*.svd
*.pdb
# Unity3D generated meta files
*.pidb.meta
# Unity3D Generated File On Crash Reports
sysinfo.txt
# Builds
*.apk
*.unitypackage
@xCyborg
Copy link

xCyborg commented Mar 12, 2018

Is there a way to ignore everything except /Assets /Packages/ and /Project Settings directories?

Copy link

ghost commented Apr 14, 2018

@xCyborg The following will ignore all root files and directories and then will un-ignore Assets, Packages and ProjectSettings directories located in root.

/*
!/Assets/
!/Packages/
!/ProjectSettings/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment