there is a project, mainly directory structure definition, there are multiple layers of nesting, I created a README file in each directory, now I need to exclude all files, only README files (or create .gitkeep under the directory), now there are too many directories, is there a good solution?
such as this (if this doesn"t work, you can look at it as pseudo code):
/Dir/*
!/Dir/README
!/Dir/*/README