>_toolkitbox

~/tools / .gitignore Generator

.gitignore Generator

Pick languages, OSes, and editors to combine into a .gitignore file. A simple template built from commonly used patterns.

Every new repo means remembering to exclude node_modules, .DS_Store, .idea, and the like. Just pick what you're using and get them all in one go.

# Use Cases

  • Getting a reasonable baseline .gitignore in place right after creating a new repo
  • Avoiding an accidental commit of node_modules or .env
  • Covering everyone's editor/OS-specific files on a team with mixed macOS/Windows and editors

# Usage

  1. Select as many languages/OSes/editors as apply (multi-select).
  2. The .gitignore content is generated automatically based on your selection.
  3. Click "Copy" and paste it into your project's .gitignore file.
# Node
node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*
dist/
.env

# macOS
.DS_Store
.AppleDouble
.LSOverride

# VSCode
.vscode/*
!.vscode/extensions.json

# FAQ

Is this the same as GitHub's official templates?
No — it's an original, simplified set based on commonly used patterns. Add project-specific entries as needed.
Can I combine multiple presets?
Yes. Select several languages/OSes/editors at once and they'll all be combined into a single .gitignore.

# Related

# Learn more on our sister sites

  • Learn Git

    Try the commands in a simulated terminalprodou.net