[git].gitignore cannot ignore the specific dir or file

Dec 30, 2016 09:07 · 47 words · 1 minute read

I had already added obj/Debug to .gitignore, however, files in this path are still in file list that to be committed

If you want to ignore obj/Debug dir, which should be confirmed first is obj/Debug is not already under version control. So.

git rm -r --cached obj/Debug