I have the following directory structure:
$ tree config/
First, delete (or move out of the repository)
config.ini (+ any others you want to exclude) and make a commit.
Next, change your
.gitignore to simply look like this:
config/ are at the same level)
Commit the change for your
All changes to anything in
config/ from here on out should not be tracked.