Loading...
Loading...
Manage and generate .gitignore files using the official GitHub gitignore template library via the `ign` CLI. Use when initializing new project repositories, automatically detecting project stack from files, adding language/framework/IDE ignore rules, inspecting applied templates, or safely modifying existing .gitignore files.
npx skill4agent add skyxim/ign gitignoreignign.gitignore.gitignorecommand -v ign >/dev/null 2>&1 || cargo install ign~/.config/ign/templatesign template status >/dev/null 2>&1 || ign template init.gitignore| Project Marker / Directory | Recommended Template | Description |
|---|---|---|
| | Rust build artifacts ( |
| | Node.js / Web frontend dependencies and build outputs |
| | Python virtual environments and |
| | Go binaries and vendor directories |
| | Java Maven projects |
| | Gradle / Kotlin / Android projects |
| | PHP Composer dependencies |
| | Ruby / Rails dependencies and logs |
| | Dart / Flutter cross-platform projects |
| | C / C++ build outputs |
| | Deno cache and build artifacts |
| | Elixir / Phoenix projects |
| | .NET / C# solutions |
LinuxGlobal/LinuxmacOSGlobal/macOSWindowsGlobal/WindowsVisual_Studio_CodevscodeGlobal/VisualStudioCodeJetBrainsideaGlobal/JetBrains# Example: Rust project detected on Linux with VS Code and JetBrains IDEs
ign init Rust macOS Linux JetBrains Visual_Studio_Code
# Example: Frontend Node.js project detected
ign init Node macOS Linux Visual_Studio_Code.gitignoreinitign init Rust macOS JetBrains Visual_Studio_Codeign init -iign init Rust macOSadd.gitignoreign add Linux Pythonstatus.gitignore# Human-readable terminal output
ign status
# Structured JSON output for Agent/CI consumption
ign status --json{
"file_exists": true,
"path": ".gitignore",
"managed_by_ign": true,
"templates_count": 4,
"templates": [
"Rust",
"Global/macOS",
"Global/JetBrains",
"Global/VisualStudioCode"
],
"created_at": "2026-08-29T04:33:10Z",
"updated_at": "2026-08-29T04:33:21Z",
"has_custom_rules": true,
"custom_rules_lines": 2,
"custom_rules": "# Custom user rule\nscratch/",
"total_lines": 220
}remove.gitignoreign remove Global/macOS
# Or using smart alias:
ign remove macossearchlistshow# Fuzzy search templates
ign search elixir
ign search jetbrains --json
# View raw template contents
ign show Rust
# List all templates in a category
ign list -c globaltemplate# Inspect local template library status and directory path
ign template status
ign template path
# Manually pull latest templates from GitHub
ign template update
# (Top-level shorthand: ign update)~/.config/ign/templatesexport IGN_TEMPLATES_DIR="/path/to/custom/gitignore-repo"