I just started a new Visual Studio project that uses Git as source control. I needed to create a .gitignore file because all my *.dll and *.pdb files were showing up as modified files when I did 'git status'. Even after adding the .gitignore and adding *.dll and *.pdb in the file, the 'git status' command still showed the files.
I read somewhere in SO that all I needed to do is execute: git rm -r . --cached
But when I did that, 'git status' now shows all my .cs files as deleted!
What do I do now? In Visual Studio I see the deleted icon next to each .cs file but it also shows me the deleted files in the Staged section. Plus, it shows the .cs files as 'added' in the Changes tab.
Can someone explain this. I'm not a Git expert.
Thanks,