Answer the question
In order to leave comments, you need to log in
.Gitignore - how to exclude a subfolder through one?
admin/*
!admin/modules/
admin/*
!admin/modules/name/
Answer the question
In order to leave comments, you need to log in
Found the solution myself.
1) exclude the folder
admin/*
2) ignore the exception of the child
!admin/modules/
3) exclude the contents of the child
admin/modules/*
4) ignore the exception of the child
!admin/modules/name/
TOTAL:
admin/*
!admin/modules/
admin/modules/*
!admin/modules/name/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question