]> source.dussan.org Git - gitignore.git/commitdiff
Fix solution/project files for nested directories. 1307/head
authorJoel Kuntz <Frozenfire92@users.noreply.github.com>
Fri, 5 Dec 2014 01:43:44 +0000 (21:43 -0400)
committerJoel Kuntz <Frozenfire92@users.noreply.github.com>
Fri, 5 Dec 2014 01:43:44 +0000 (21:43 -0400)
By having the leading `/` infront of the `*` makes these types of files relative to the directory the gitignore is in. If you create a Unity project inside of a git directory Unity forces you to create a new directory, thus not picking up these files.

Unity.gitignore

index 9d8e1156f6171d8c02e7c25cb60125d3813a74dc..21d2efd71e599cdc915c03de1a7a0794c7933b30 100644 (file)
@@ -4,14 +4,14 @@
 [Bb]uild/
 
 # Autogenerated VS/MD solution and project files
-/*.csproj
-/*.unityproj
-/*.sln
-/*.suo
-/*.user
-/*.userprefs
-/*.pidb
-/*.booproj
+*.csproj
+*.unityproj
+*.sln
+*.suo
+*.user
+*.userprefs
+*.pidb
+*.booproj
 
 #Unity3D Generated File On Crash Reports
 sysinfo.txt