gitignore仍然包含dll文件

时间:2017-04-24 12:49:46

标签: git bitbucket

我有一个包含5个项目的解决方案。我正在使用BitBucket进行源代码管理。 我的.gitignore主根

中有以下内容
# Compiled source #
###################

*.com
*.class
*.dll
*.exe
*.o
*.so

# Packages #
############
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip

但每次重建解决方案时,我都会在visual studio Team Explorer中进行更改,并且会看到生成的.dll和.pdb文件列表。

我该如何解决这个问题?

1 个答案:

答案 0 :(得分:1)

更改你的gitignore后你清除了git缓存了吗?

git rm --cached .

将清除缓存和任何旧的忽略规则。之后,您的新规则将对所有新提交生效。

显然,这不会影响已经提交的提交。

相关问题