I'm setting up my gitignore file and I want to ignore the Debug and Release directories that are created by Visual Studio's build process. But I have a Libraries folder than has sub folders for Debug and Release - I need these folders to be included.
The sub folders under Libraries are referenced in the projects using the build configuration so they need to include the Debug/Release names.
I tried using the ! command to negate the pattern, but this wasn't successful.
I'm looking for a .gitignore configuration that would enable me to include specifically the Libraries/Debug and Libraries/Release folders, but ignore all other Debug and Release folders.