Browse Source

Fix solution/project files for nested directories.

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.
Joel Kuntz 10 năm trước cách đây
mục cha
commit
103740bdb1
1 tập tin đã thay đổi với 8 bổ sung8 xóa
  1. 8 8
      Unity.gitignore

+ 8 - 8
Unity.gitignore

@@ -4,14 +4,14 @@
 [Bb]uild/
 [Bb]uild/
 
 
 # Autogenerated VS/MD solution and project files
 # 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
 #Unity3D Generated File On Crash Reports
 sysinfo.txt
 sysinfo.txt