Skip to content

Tools/gitignore

gitignore

Combine Node, Python, Go, Rust, Next, and Android ignore templates. Nothing is uploaded.

Loading tool…

How to use gitignore

  1. 1. Toggle stacks. Node and Next on by default.
  2. 2. Copy the file. Commit it at the repo root.
  3. 3. Add secrets patterns. .env is included in Node.
  4. 4. Don't ignore source. Review before you paste into a monorepo.

About this tool

A good .gitignore is cheaper than scrubbing history. These templates are starting points, not your company policy.

Next vs Node

Next adds .next/ and next-env.d.ts. Node covers node_modules and dist.

Android

APK/AAB and Gradle — not a full Android Studio ignore.

Code examples

snippet

node_modules/
.env

Frequently asked questions

Related tools

All tools