I have a C# Visual Studio project in a git repository. I want to ignore the contents bin/Debug directory but not the contents of the bin/Release\' dire
bin/Debug
bin/Release
I know it is an old question, but I've decided to share my approach which excludes exactly bin/Debug, bin/Release etc.
*/**/bin/Debug */**/bin/Release */**/obj/Debug */**/obj/Release