I have a .NET solution which, after switching back to master
branch, leaves a project folder behind. I want to clean this folder up (there is nothing but bin and obj folders inside, with some old dll's) so I tried git clean -f -d
. This did not work.
I checked which files are being tracked by git using git ls-tree test/flat -r --name-only
and sure enough the project folder to be cleaned is not listed.
What should I do to convince git to clean the working folder so that it's contents is only what is in the master
branch?
Note: The unwanted project folder is also not ignored.