Skip to content
FestivKit

.gitignore Generator

Pick languages, frameworks, editors, and operating systems and download one .gitignore file. Templates are bundled with the app.

Your data stays in your browser. This tool processes your input locally and does not upload it to a server.

Languages
Frameworks
IDEs and editors
Operating systems
# Created with FestivKit
# https://festivkit.com/tools/gitignore-generator

# Node
node_modules/
dist/
build/
.npm/
*.log
.env
.env.*
!.env.example

# VS Code
.vscode/*
!.vscode/settings.json
!.vscode/extensions.json
!.vscode/launch.json

What is a .gitignore file?

A .gitignore file lists files and folders that Git should not track, such as dependencies, build output, logs, secrets and editor settings. This generator combines bundled templates for languages, frameworks, editors and operating systems into one file you can copy or download, with no external API calls.

How the generator builds your file

Tick the templates that match your project. The tool offers 11 languages (such as Node, Python, Java, Go and Rust), 7 frameworks (React, Vue, Angular, Next.js, Django, Laravel and Rails), 5 editors and IDEs, and 3 operating systems. It stacks the selected templates in a fixed order, adds a "# Name" heading above each block, and puts a short "Created with FestivKit" comment at the top.

The templates are short, practical starting points bundled with the app. They are not a copy of GitHub’s full gitignore collection, so review the output and add rules specific to your project.

Where to put it and how it works

Save the file as .gitignore in the root of your repository. Each line is a pattern: a trailing slash matches a directory, * matches any characters within a name, and a leading ! re-includes something excluded earlier. Lines starting with # are comments.

Git ignores only untracked files. If a file was already committed, adding it to .gitignore will not remove it; you need git rm --cached first.

Privacy

Templates are combined in your browser and nothing is sent to a server. The default selection is Node and VS Code.

Examples

Node project only

Input

Select: Node

Output

# Created with FestivKit
# https://festivkit.com/tools/gitignore-generator

# Node
node_modules/
dist/
build/
.npm/
*.log
.env
.env.*
!.env.example

The ".env" files are ignored but .env.example is kept, so you can commit a sample configuration.

Add macOS to the same project

Input

Select: Node, macOS

Output

(the Node block above, then)

# macOS
.DS_Store
.AppleDouble
.LSOverride

Templates appear in the order shown in the picker, not the order you click them.

Common mistakes and edge cases

  • Adding a pattern does not untrack a file Git already knows about. Run git rm --cached <file> and commit to stop tracking it.
  • Never rely on .gitignore to protect secrets that were already committed. Rotate any exposed key and remove it from history.
  • Ignoring a whole directory with a trailing slash prevents Git from re-including files inside it with ! rules. Ignore its contents instead if you need exceptions.
  • Ignoring build folders like dist/ or build/ is not right for every project. Some repositories commit generated output on purpose.
  • Lockfiles such as package-lock.json are not ignored by these templates, which is usually correct because lockfiles should be committed.
  • Personal editor and OS rules are often better in your global ignore file (core.excludesFile) than in every repository.

How to use this tool

  1. Select the templates that match your project.
  2. Review the combined preview.
  3. Copy it or download .gitignore.

Frequently asked questions

How do I create a .gitignore file?

Select your language, framework, editor and operating system on this page, then copy the preview or download it as .gitignore. Place the file in the root folder of your repository, next to the .git directory, and commit it so everyone shares the same rules.

Does this tool use the GitHub gitignore API?

No. The templates ship with FestivKit and are combined in your browser, so it works offline once loaded and sends no request. The templates are concise and may differ from GitHub’s official ones, which are longer.

Why is Git still tracking a file I added to .gitignore?

Git only ignores untracked files. If the file was committed earlier, it stays tracked. Run git rm --cached path/to/file (or git rm -r --cached folder) and commit. The file stays on your disk but Git stops tracking it from then on.

Can I combine several templates?

Yes. Select as many as you need, for example Python, Django, JetBrains and Linux. The tool stacks them into one file with a comment heading for each template. If two templates contain the same rule, it simply appears in both blocks, which is harmless.

Should I ignore the .env file?

Usually yes, because it often holds secrets such as API keys and database passwords. The Node template ignores .env and .env.* but keeps .env.example, which you can commit as a safe template listing variable names without real values.

References

Last reviewed

Related tools

Browse all tools