I have a git repository that\'s used only to hold graphics and sound files used in several projects. They are all in one directory without sub-directories. Now I just create
TL;DR to clean up your git repository and make sure ALL your ignored items are indeed ignored:
git rm -r --cached . git add . git commit -m "Clean up ignored files"
Note: you don't need to specify a directory, this way your are cleaning the entire remote repo.
To go further read this