Answer the question
In order to leave comments, you need to log in
Gitignore how to exclude everything except folder and file with may?
I currently have this in gitignore:
/tests/*
!/tests/admin
/tests/*
!/tests/admin
!/tests/services/serv_*
Answer the question
In order to leave comments, you need to log in
You need to add the parent folder to the exclusions too
!/tests/services
Like so
/tests/*
!/tests/admin
!/tests/services
/tests/services/*
!/tests/services/serv_*
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question