.gitignore Isn’t the Only Way To Ignore Files in Git

You can ignore files in .gitignore, .git/info/exclude, and ~/.config/git/ignore