From 6f6fbb0363282a32ad52670fa86785ff2d761d8e Mon Sep 17 00:00:00 2001 From: Tom Ward Date: Tue, 9 Nov 2010 07:25:48 +0000 Subject: [PATCH] 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. --- Rails.gitignore | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Rails.gitignore b/Rails.gitignore index 271d2f29..bf690d21 100644 --- a/Rails.gitignore +++ b/Rails.gitignore @@ -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/