I cannot figure out how to get setup my ".gitignore" file to ignore bin/Debug and bin/Release folders for a C#.NET project. I've researched this and tried everything imaginable. I'm surely not understanding something fundamental.
My root folder (the one that contains the solution file, as well as my .gitignore and my .git hidden folder) has these folders:
ABC
EDF
GHI
I want to ignore ABC/bin/Debug, EDF/bin/Debug, ... etc.
My .gitignore looks like this (one example I've tried):
ABC/bin/Debug/
EDF/bin/Debug/
GHI/bin/Debug/
Yet, when I type "commit -a" it shows that all the files in those folders are "modified" and going to be committed. Same thing if I type "git status".
Can anyone tell me what I'm doing wrong? Is the .gitignore in the wrong place? Are the patterns wrong? What would be the correct pattern for this?