Skip to main content
DevTools24

.gitignore 生成器

从流行语言和框架的模板生成 .gitignore 文件。选择多个模板进行合并。

Languages

Frameworks

Operating Systems

Editors

About .gitignore

  • Select one or more templates above to generate your .gitignore
  • Templates can be combined for projects using multiple technologies
  • Place the .gitignore file in your repository root
  • Files already tracked by Git won't be ignored until you run git rm --cached

.gitignore Files - 技术详情

A .gitignore file specifies intentionally untracked files that Git should ignore. Files already tracked by Git are not affected. Common patterns include build outputs, dependencies, environment files, and IDE settings.

命令行替代方案

# Create a .gitignore from GitHub's collection\ncurl -sL https://www.toptal.com/developers/gitignore/api/node > .gitignore\n\n# Or use gitignore.io\ngit config --global alias.ignore '!gi() { curl -sL https://www.toptal.com/developers/gitignore/api/$@ ;}; gi'

参考

查看官方规范