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
You shouldn't have to delete anything. After you added the .gitignore file, run this command to clear the cache, then stage and commit again:
git rm -r . --cached