.gitignore generator

Build a .gitignore for the languages, editors and operating systems you use, merged without duplicates.

Input

What the project uses: python, node, java, go, rust, dotnet, php, ruby, cpp, swift, terraform, macos, windows, linux, vscode, jetbrains, vim, secrets.

Result

Fill in the input and press Run.

Your input is processed in memory and then discarded. It is not stored or logged. Even so, don't paste live passwords or keys into any online tool.

Use it from code or an agent

curl -s https://setget.net/v1/tools/gitignore-generate \
  -H 'Content-Type: application/json' \
  -d '{"input":{"stacks":["rust","macos"]}}'
import json, urllib.request

body = {'input': {'stacks': ['rust', 'macos']}}
request = urllib.request.Request("https://setget.net/v1/tools/gitignore-generate", json.dumps(body).encode(),
                                 {"Content-Type": "application/json"})
print(json.load(urllib.request.urlopen(request))["result"])
const response = await fetch("https://setget.net/v1/tools/gitignore-generate", {
  method: "POST",
  headers: {"Content-Type": "application/json"},
  body: JSON.stringify({"input":{"stacks":["rust","macos"]}}),
});
console.log((await response.json()).result);
Tool: run_tool
Arguments:
{
  "slug": "gitignore-generate",
  "input": {
    "stacks": [
      "rust",
      "macos"
    ]
  }
}
{
  "input": {
    "stacks": [
      "rust",
      "macos"
    ]
  }
}

Endpoint: POST /v1/tools/gitignore-generate. Over MCP: run_tool with slug: "gitignore-generate". Machine-readable: input schema, Markdown. Connect an agent.

Inputs

NameTypeRequiredWhat it does
stacks array yes What the project uses: python, node, java, go, rust, dotnet, php, ruby, cpp, swift, terraform, macos, windows, linux, vscode, jetbrains, vim, secrets.

Examples

Input
{
  "stacks": [
    "rust",
    "macos"
  ]
}
Result
{
  "text": "# Rust\ntarget/\n**/*.rs.bk\n*.pdb\n\n# macOS\n.DS_Store\n.AppleDouble\n.LSOverride\n._*\n.Spotlight-V100\n.Trashes\n.fseventsd\n",
  "stacks": [
    "rust",
    "macos"
  ],
  "patterns": 10
}

A pattern both sections share (.env) is written once

Input
{
  "stacks": [
    "python",
    "secrets"
  ]
}
Result

Different every time. Press the example button above to see one.

Questions

A file is still tracked after I added it. Why?
.gitignore only affects files Git is not tracking yet. Run "git rm --cached <file>" to stop tracking one that was already committed.
Where does the file go?
Save it as .gitignore in the top folder of the repository.