I’ve tried a few variations of this and can’t crack it… hopefully someone can tell me what’s wrong because this would be a really handy feature to have.
// Ignore everything
*
// except
!*.mkv
!*.mov
!*.mp4
!*.srt
// Even if they're in subdirectories
!*/
No, exact same matching rules apply for ignoring and unignoring.
The problem is what @brunod said: The first rule to match does apply. So you need to move the include rules to the top.
And unfortunately he is again right with subdirs not being that easy. Currently you need to specify every subdir where files should be included. There’s threads in the forum about how it works, don’t want to search them on the phone. However there is a PR open at the moment that would solve this problem, so this might get easier soonish.