"The ignore file lives in your machine’s home directory in ~/.config/git/ignore....
JP Mens™ @jpmens@mastodon.social
"The ignore file lives in your machine’s home directory in ~/.config/git/ignore. Whatever filenames are added to this file are ignored globally at a machine-level. This file is not checked into Git and isn’t associated with any particular repository. It’s a great place to add files that you want to ignore in every git repository on your computer. For example, if you’re on macOS, adding .DS_Store here would be ideal."
https://nelson.cloud/.gitignore-isnt-the-only-way-to-ignore-files-in-git/