A minimal Node.js + macOS .gitignore
# Node.js node_modules/ npm-debug.log* dist/ .env .env.local # macOS .DS_Store ._*
The bare minimum for any Node project shared with a teammate on macOS. Even a tiny side project should have these rules — without .DS_Store and node_modules/ you'll fight pointless conflicts.