Missak Boyajian
Missak Boyajian

Reputation: 2245

gitignore still including dll files

I have a solution with 5 projects. I am using BitBucket for source control. I have the following in my .gitignore main root

# 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

However everytime I rebuild the solution, I get changes in my visual studio Team Explorer and I see a list of .dll and .pdb files produced.

How can I fix this?

Upvotes: 2

Views: 2803

Answers (1)

Luke K
Luke K

Reputation: 895

Did you clear the git cache after changing your gitignore?

git rm --cached .

will clear the cache and any old ignore rules. After that, your new rules should take effect for all new commits.

Obviously, this won't effect commits that have already been made.

Upvotes: 2

Related Questions