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

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.

1
git rm -r --cached obj/Debug 
Licensed under CC BY-NC-SA 4.0
记录平时瞎折腾遇到的各种问题, 方便查找
使用 Hugo 构建
主题 Stack 3.29.0Jimmy 设计