You are perfectly correct. And that's the point. One can "freeze" the file at the state it's been at the moment of adding to .gitignore.
I was addressing the following fragment from TS:
we have some configuration files tracked in git that we modify locally to enable debugging options. We don't want to ignore these files and have to manage them in a different system outside of git, but we also don't want the debugging options checked in.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
You are perfectly correct. And that's the point. One can "freeze" the file at the state it's been at the moment of adding to
.gitignore
.I was addressing the following fragment from TS: