git ignore all files in subfolders of subfolders

I am using strapi with the documentation-/swagger-plugin. Every time I change something or add a new controller, the documentation rebuilds.

How can I make git ignore all files in /documentation/*.json ?

github-desktop example

I tried * / documentation / *.json in my .gitignore but that didnt work.
Just adding *.json is not a option.

>Solution :

You need to use ** like **/documentation/*.json

Leave a Reply