Browse Source

Update CakePHP.gitignore

Ignore all tmp and log files but preserve the directory structure
Patrício dos Santos 9 years ago
parent
commit
0022763f14
1 changed files with 13 additions and 1 deletions
  1. 13 1
      CakePHP.gitignore

+ 13 - 1
CakePHP.gitignore

@@ -2,8 +2,20 @@
 
 /vendor/*
 /config/app.php
-/tmp/*
+
+/tmp/cache/models/*
+!/tmp/cache/models/empty
+/tmp/cache/persistent/*
+!/tmp/cache/persistent/empty
+/tmp/cache/views/*
+!/tmp/cache/views/empty
+/tmp/sessions/*
+!/tmp/sessions/empty
+/tmp/tests/*
+!/tmp/tests/empty
+
 /logs/*
+!/logs/empty
 
 # CakePHP 2