A developer added an image directory on the server without adding that folder to the .gitignore file. When I did a git pull it pulled those files (hundreds of files). I added the folder to the .gitignore on the server but not my local system. I then deleted the files locally (permanently). When I do a git status all those deleted files still show up. How can I suppress them from showing up?
Update: thanks for all the great help. To make sure there is no misunderstanding: I do want to keep the files on the server; I just want to remove them from git.
Since they've already been committed to the repository it's a bit more work, but still doable.
The best walkthrough that I've found on this procedure is Github's guide on Removing Sensitive Data. Since you want to keep the files, you have a step to do before and after the guide.
Before you start this process, copy the files out of your working directory. Once you have finished purging the repo of them, copy them back in and add them to your .gitignore.