A couple of days ago, I noticed that somehow had a committed file that was also ignored in .gitignore. It's the site's main config file, and my development copy had somehow gotten committed.
In order to remove the file, I created a commit that removed the line from .gitignore and deleted the file in question. Then I created another commit that added the .gitignore line back in.
But now, whenever those commits are applied to someone's environment, their ignored config file is deleted! How can I fix my repo so that this doesn't happen anymore?