Let's 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 just want to not ignore *.c.
I tried
*
!*.c
in .gitignore, but it only works at the current level.
I want to install something like !*/*/*.c, since later there may be other directories added to the git repository, I cannot write the file hard .gitignore.
source
share