You can edit .git/info/exclude to ignore things locally, without editing or checking in a .gitignore file. via the git docs, and me searching for this answer multiple times :)

WebMentions

Read more about WebMentions on the IndieWeb wiki »