Skip to content
OddsockLocal
Local
Source text

The preview shows up here.

ReadyRuns in this browser. Nothing is uploaded.

How to use

  1. Type template names separated by spaces, commas or plus signs.
  2. Use node, python, go, rust, nextjs, vscode, jetbrains, macos, windows or linux.
  3. Read the sections. A shared pattern such as node_modules/ appears once.
  4. Copy the text into .gitignore. The page does not touch the repo.

What is Gitignore builder?

The builder knows a short list of templates and refuses anything else, so a typo does not become a comment that ignores nothing. Type node, vscode and you get a # node section with node_modules/, coverage/, npm-debug.log*, .env and .env.local, then a # vscode section with .vscode/* and the two exceptions that keep extensions.json and tasks.json.

Read more

Names are matched loosely. Next.js, next-js and nextjs all select the Next template, because dots and hyphens are removed before the lookup. Templates you can ask for: node, python, go, rust, nextjs, vscode, jetbrains, macos, windows, linux. Separate them with spaces, commas or plus signs. A name that is not in that list fails and the error repeats the list.

If two templates share a line, you get it once. node and nextjs both mention node_modules/, and the file contains that line a single time. The page does not write the file into a repository. You copy it to .gitignore.

Use cases

  • A new Next.js repo needs .next/, node_modules/ and the local env files without hunting down three sample gitignores.
  • A Python project should ignore __pycache__/, .venv/ and dist/ and you want those lines under a heading you can edit later.
  • A macOS laptop keeps adding .DS_Store and you want that section next to the language rules.
  • You typed nod instead of node and you would rather get an error than a gitignore that does not ignore node_modules.

Node and VS Code in one file

node, vscode

# node\nnode_modules/\ncoverage/\nnpm-debug.log*\n.env\n.env.local\n\n# vscode\n.vscode/*\n!.vscode/extensions.json\n!.vscode/tasks.json

Why use Oddsock

A closed list is stricter than a search box of every template on the internet, and a misspelled name fails instead of emitting an empty section.

Related tools

Using this tool

node, python, go, rust, nextjs, vscode, jetbrains, macos, windows, linux. Dots and hyphens are ignored, so Next.js matches nextjs.