I needed to ignore new files without adding them to .gitignore.
I'd normally do git update-index --assume-unchanged <file-paths>, however that doesn't work for files that have not be checked-in in the repository before.
In such cases we can use the file in .git/info/exclude, which behaves exactly like .gitignore but is completely local.
Sources: