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
Running the following command worked for me (thanks to "orourkedd"):
git rm -r . --cached
I manually added the .gitignore file but it wasn't taken into consideration until I ran this command.
.gitignore
I then had to commit again and all good to go now. /bin and /obj folders are properly excluded now.
/bin
/obj