I've have directory structure like :
a
|-- b
| |-- qfq.txt
| |-- ewfw.txt
| | ...
|
|-- c
| |-- wgfw.txt
| |-- wjkh.txt
| | ...
| ...
I need to gitignore all txt files in a/*/
. I tried /a/*/*.txt
and /a/**/*.txt
, but they don't work.
Please help. Thank you.
Updated :
Solved
/a/**/*.txt
works. Also, I came to know that git doesn't commit empty folders, not knowing which I thought the commands not working properly.
Thanks @JonathonReinhar, @phd, pankaj for quick response.