I am having trouble with this gitignore file for my Unity project. I want to exclude my assets folder except for the subdirectories under the "Include Me" entry.
All files under Assets/Scripts and Assets/Scenes are being added to my repository, but not the Assets/Cards... subdirectories. I really can't figure out why one include/exclude pattern is working but the others aren't.
How can I make this file work to include those other subdirectories?
# =============== #
# Unity generated #
# =============== #
Temp/
Library/
Builds/
Assets/*
# ============ #
# Include Me #
# ============ #
!Assets/Scripts
!Assets/Scenes/
!Assets/Cards/Miniatures/Resources/*
!Assets/Cards/Miniatures/Resources/
!Assets/Cards/Spells/Resources/
!Assets/Cards/Spells/Resources/*