.gitignore不会忽略某些文件夹中的文件 [英] .gitignore isn't ignoring files in certain folder

查看:272
本文介绍了.gitignore不会忽略某些文件夹中的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个.gitignore文件.

I have a .gitignore file.

我的一个声明是

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

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

但是它仍在拾取这些文件

But it's still picking up these files

推荐答案

您需要告诉git首先从存储库中删除.

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

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

然后提交更改.

这篇关于.gitignore不会忽略某些文件夹中的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆