Say I start a git repository in a folder, and I have several subdirectories in it.
I have several globbing patterns .gitignore to exclude files in the s
.gitignore
How about putting a .gitignore file in your sub directories instead along the line of
# Ignore everything in this directory * # Except these file !.gitignore !file1 !file2 !file3