There are certain files I want to have in my repo, but do not want to update when running git add . .
An example is the Notepad++ config.xml file, which keeps the editor settings, but also tracks the opened file history.
.gitignore does not serve this purpose as it does not ignore files already added to the repo.