gitignore 生成器

选择编程语言、框架、工具和 IDE,生成 .gitignore 文件。

选择模板

Language

Framework

Tool

IDE

OS

.gitignore

What Is a .gitignore Generator?

A .gitignore generator helps you create a customized .gitignore file by selecting the languages, frameworks, tools, and IDEs in your project. Instead of writing patterns by hand or copying from multiple sources, you pick the relevant templates and get a clean, combined file ready to drop into your repository root.

How to Use the gitignore Generator

  1. Search or browse templates by category: Language, Framework, Tool, IDE, or OS.
  2. Click a template to select it — selected templates are highlighted in blue.
  3. The generated .gitignore content updates instantly in the right panel.
  4. Click Download to save the file directly as .gitignore, or Copy to copy the content to your clipboard.

Features

  • 20+ templates covering popular languages, frameworks, tools, and IDEs
  • Mix and match multiple templates into a single file
  • Search templates by name or category
  • Download directly as .gitignore or copy to clipboard
  • Each template section clearly labeled in the output
  • Runs entirely in your browser — zero data uploaded

FAQ

What is a .gitignore file?

A .gitignore file tells Git which files and directories to ignore when tracking changes. Common entries include build outputs, dependency folders (like node_modules), environment files with secrets, and OS-generated files like .DS_Store.

Can I combine multiple templates?

Yes. You can select as many templates as needed. For example, select Node.js, React, VS Code, and macOS to get a combined .gitignore that covers your entire stack.

Where should I place the .gitignore file?

Place the .gitignore file in the root of your repository. Git also supports per-directory .gitignore files and a global .gitignore in your home directory (~/.gitignore_global) for machine-wide settings.

Will .gitignore untrack files already committed?

No. If a file was already committed to the repository, adding it to .gitignore will not remove it from tracking. You need to run git rm --cached <file> to stop tracking it without deleting the actual file.