Skip to content

Commit 6f6fbb0

Browse files
tomafrodefunkt
authored andcommitted
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.
1 parent ac35a76 commit 6f6fbb0

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

Rails.gitignore

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
*.rbc
2-
.bundle
3-
vendor/bundle
4-
log/*
5-
tmp/*
6-
db/*.sqlite3
7-
public/system/*
8-
coverage/
92
*.sassc
103
.sass-cache
114
capybara-*.html
125
.rspec
6+
/.bundle
7+
/vendor/bundle
8+
/log/*
9+
/tmp/*
10+
/db/*.sqlite3
11+
/public/system/*
12+
/coverage/

0 commit comments

Comments
 (0)