I have a project with a .gitignore file that looks like:
*.2007
*.~*
*.identcache*
__history/*
*.drc
*.dproj.local
*.groupproj.local
*.exe
*.map
*.tvsconfig
LibrarySupport/*
z*/*
*ModelSupport*
*.zip
.DS_Store
*.mp4
*.orig
*.cbk
*.dcu
Yet it continues to track .dcu files in my project.
What am I doing wrong here?
If the file was already tracked before the
.gitignorewas added (or updated) it will continue to have changes tracked.Try something like
find . -name "*.dcu" -exec git rm --cached {} \;to get rid of the ones that exist in the repository already.