How to git ignore files under sub directories. We have lots of files which we would like to ignore under sub directories.
(e.g. db/schema.rb or config/database.yml)
you can do something like:
db/schema.rb
db/*
!db/*/
first will ignore the schema.rb The mixture of second and third will ignore all files in db/ but unignore all directories in db/