.gitignore isn't ignoring files in certain folder [duplicate]

我怕爱的太早我们不能终老 提交于 2019-12-25 03:47:12

问题


I have a .gitignore file.

One of my declarations is

**/bin/Debug/ **/obj/Debug/

But it's still picking up these files


回答1:


You need to tell git to remove the from the repository first.

git rm --cached bin/Debug
git rm --cached obj/Debug

Then commit changes.



来源:https://stackoverflow.com/questions/55342574/gitignore-isnt-ignoring-files-in-certain-folder

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!