Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

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

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

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

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading