← 返回
开发者工具 中文

Gitignore Gen

Generate .gitignore files for any project type using GitHub's 200+ official templates. Use when creating new projects, setting up repositories, needing to co...
使用 GitHub 200+ 官方模板为任意项目生成 .gitignore 文件,适用于新建项目、初始化仓库或需配置的场景。
johnnywang2001
开发者工具 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 438
下载
💾 2
安装
1
版本
#latest

概述

Gitignore Generator

Generate .gitignore files from GitHub's official template collection. Combine multiple templates, auto-detect project type, add custom rules.

Quick Start

# List all available templates
python3 scripts/gitignore_gen.py list

# Generate for a Python project
python3 scripts/gitignore_gen.py generate Python --force

# Combine multiple templates
python3 scripts/gitignore_gen.py generate Python Node JetBrains --force

# Auto-detect project type
python3 scripts/gitignore_gen.py detect /path/to/project

Commands

list

List all 200+ available templates. Filter with --filter:

python3 scripts/gitignore_gen.py list --filter java

generate

Create a .gitignore from one or more templates:

python3 scripts/gitignore_gen.py generate Python Node --stdout     # print to stdout
python3 scripts/gitignore_gen.py generate Rust -o /tmp/.gitignore  # custom output path
python3 scripts/gitignore_gen.py generate Go --append              # append to existing
python3 scripts/gitignore_gen.py generate Swift --extra '*.local' --extra 'secrets/'

detect

Auto-detect project type from files in a directory:

python3 scripts/gitignore_gen.py detect           # current directory
python3 scripts/gitignore_gen.py detect ~/myproj   # specific path

Detects: Node, Python, Ruby, Rust, Go, Java, PHP/Composer, Dart, Elixir, Swift, Terraform, Docker, JetBrains, VS Code, and more.

Flags

  • --stdout — Print to stdout instead of writing a file
  • --force — Overwrite existing .gitignore
  • --append / -a — Append to existing .gitignore
  • --output / -o — Custom output file path
  • --extra / -e — Add custom ignore patterns (repeatable)
  • --filter / -f — Filter template list by name

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 10:46 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 666 📥 323,714
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 65 📥 179,753
productivity

Agent Invoice Generator

johnnywang2001
根据自然语言或结构化数据生成专业的PDF发票,适用于用户请求创建发票、向客户计费或生成收据等场景。
★ 0 📥 645