Say I have a folder structure like this:
├── a
│ ├── b
│ │ ├── c.xml
│ │ └── d.c
│ ├── v
│ ├── e.class
│ └── g.c
|
├── m
│ ├── p
│ │ ├── w.out
│ │ └── x.c
│ ├── q
│ │ ├── y.mp3
│ │ └── z.c
And I only want to not ignore *.c
.
I tried
*
!*.c
in .gitignore
, but that seems only work in the current level.
What I want is to set something like !*/*/*.c
, since there may be other directories added to the git repo later, I can't hard-code the .gitignore
file.