If you had a file structure something like?
foo
├── bar
│ ├── file1.coffee
│ ├── file2.coffee
│ └── file3.coffee
├── file1.js
├── file2.js
└── file3.js
How to ignore first level files in the foo
directory (file1.js
, file2.js
, file3.js
) BUT NOT IGNORE everything in the bar
directory (file1.coffee
, file2.coffee
, file3.coffee
)
Providing the structure stays the same/ similar, but file names and extensions will of course be different.
Is it possible to do this without each directory having it's own .gitignore and whitelisting? The documentation doesn't seem to mention how to achieve this.