The * in .gitignore is recursive and causing sub-directories' gitignore rules to be ignored.
The workaround is for each sub-directory to reverse the ignore rule with !*. The fix is probably to change to /*, where the leading slash will mean the wildcard only applies to current dir.
The * in .gitignore is recursive and causing sub-directories' gitignore rules to be ignored.
The workaround is for each sub-directory to reverse the ignore rule with
!*
. The fix is probably to change to/*
, where the leading slash will mean the wildcard only applies to current dir.