Gitignore Generator

Your workspaceProcessed on your device
Language and framework
Editor
Operating system

Keep patterns are added after ignore patterns. A keep rule still needs its parent directories to be available.

Undo: Ctrl/Cmd+Z · Redo: Ctrl/Cmd+Shift+Z or Ctrl+Y. Up to 20 steps and 4 million retained characters in this tab. Clear discards history.

A few things to know.

Fourteen presets. Up to 1,000 lines or 100,000 characters per custom input. The generator omits exact repeats within runs of the same rule polarity. It retains repetitions across ignore and keep boundaries where the order may change behavior.

  1. Choose the presets your repository actually uses. Combine several languages, editors or operating systems when needed.
  2. Add custom ignore patterns and exceptions on separate lines. Set whether to show section comments.
  3. Generate .gitignore and review the complete preview. Copy the rules, download them as text, or extract the exact .gitignore file from the ZIP.