Skip to content

Instantly share code, notes, and snippets.

@flarb
Created July 3, 2016 08:19
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save flarb/95e968a874b166edf75cc0ccfa686d89 to your computer and use it in GitHub Desktop.
Save flarb/95e968a874b166edf75cc0ccfa686d89 to your computer and use it in GitHub Desktop.
Proper gitignore for HoloLens project (includes UWP folder)
/[Ll]ibrary/
/[Tt]emp/
/[Oo]bj/
/[Bb]uild/
/[Bb]uilds/
/[Uu]WP/
/Assets/AssetStoreTools*
# Autogenerated VS/MD solution and project files
ExportedObj/
*.csproj
*.unityproj
*.sln
*.suo
*.tmp
*.user
*.userprefs
*.pidb
*.booproj
*.svd
# Unity3D generated meta files
*.pidb.meta
# Unity3D Generated File On Crash Reports
sysinfo.txt
@HjoshM
Copy link

HjoshM commented Aug 10, 2017

I have put together a larger .gitignore file for VR and AR HoloLens projects that use Unity3D in C# and build via VisualStudio2017.

So, I wonder if you could please take a look and see if the following really is complete without any mistakes or redundant bits, and could then be posted here as a reference:

App/
/App/
[Uu]WP/
/[Uu]WP/

[Ll]ibrary/
/[Ll]ibrary/
[Tt]emp/
/[Tt]emp/
*.tmp
[Oo]bj/
/[Oo]bj/
[Bb]in/
/[Bb]in/

[Bb]uild/
/[Bb]uild/
[Bb]uilds/
/[Bb]uilds/
[Bb]uild/*
/[Bb]uild/*
[Bb]uild-*
/[Bb]uild-*
.[Bb]uilds

Installer/
UnityGenerated/
*.unityproj
*.unitypackage
UnityVS*
*.apk
.consulo/

[Ee]xpress
[Dd]ebug/
[Rr]elease/
_ReSharper*

*_i.c
*_p.c
*.ilk
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.dbmdl
*.vspscc
*.dotCover
*.ruleset

*.psess
*.vsp
.vs/
*.svd
*.suo
*.sln
/*.sln
*.sln.docstates
*.idb
*.pidb
*.pidb.meta
*.opendb
*.user
packages
packages.config
/*.csproj
*.csproj
*.booproj
*.userprefs
ExportedObj/
.editorconfig
.vscode/
.vscode/*
Assets/VSCode/*
Assets/VSCode.meta
Assets/Plugins/Editor/VSCode.cs
Assets/Plugins/Editor/VSCode.cs.meta
Assembly-CSharp.csproj

.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trash
.Trashes
#Icon?
ehthumbs.db
Thumbs.db
Thumbs.db.meta
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
sysinfo.txt
Desktop.ini
TestResults
*.Cache
ClientBin
stylecop.*
~$*

/Assets/AssetStoreTools*
WSATestCertificate.pfx
WSATestCertificate.pfx.meta

@devhed
Copy link

devhed commented Nov 3, 2017

@HjoshM can confirm that .gitignore worked flawlessly for me... thanks!

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