← Back to context

Comment by lxgr

3 years ago

It’s not that straightforward to ignore files in git without adding them to a local .gitignore, though.

Global .gitignore exists, but I just had to look it up again to refresh my memory – chances are, junior devs or hobby developers will never even consider it as an option.

That said, arguably ignoring .DS_Storage should be the default on macOS builds of git.

I just teach people about global gitignores then they know. If someone were to commit something to an open source project, I'd reject it and teach them about it too. I'm all about the global gitignores. The ignore file can actually act as a form of documentation if kept tidy. It's a single source of truth of all the artifacts an app can produce.