Permalink
Browse files

Unless full paths are used .gitignore, all matching files and folders…

… will be ignored, however deep they are in the repo.

For example, ignoring log/* doesn't just ignore all log files, but also files such as lib/project/log/awesome_logger.rb.  It's a mistake I've made a couple of times but never seemed to have learned from.
  • Loading branch information...
1 parent ac35a76 commit 6f6fbb0363282a32ad52670fa86785ff2d761d8e @tomafro tomafro committed with defunkt Nov 9, 2010
Showing with 7 additions and 7 deletions.
  1. +7 −7 Rails.gitignore
View
@@ -1,12 +1,12 @@
*.rbc
-.bundle
-vendor/bundle
-log/*
-tmp/*
-db/*.sqlite3
-public/system/*
-coverage/
*.sassc
.sass-cache
capybara-*.html
.rspec
+/.bundle
+/vendor/bundle
+/log/*
+/tmp/*
+/db/*.sqlite3
+/public/system/*
+/coverage/

0 comments on commit 6f6fbb0

Please sign in to comment.