.gitignore generator
Build a .gitignore for the languages, editors and operating systems you use, merged without duplicates.
Input
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
| Name | Type | Required | What 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.
Related tools
- Open source licence generatorGet the text of the MIT, BSD, ISC, Apache-2.0 or Unlicense licence with your year and name filled in.
license-generate - robots.txt generatorBuild a robots.txt: allow or block all crawlers, add your own rules, block AI crawlers and list sitemaps.
robots-txt-generate - ASCII banner text generatorTurn short text into large five-line banner letters for terminals, READMEs, logs and code comments.
ascii-banner - ASCII table generatorRender headers and rows as a box-drawing or plain ASCII table for terminals, logs and code comments.
ascii-table - Background pattern generatorMake seamless SVG background patterns (dots, grid, stripes, checker or waves) with your colours and scale.
pattern-image - Barcode generatorMake a Code 128, EAN-13 or UPC-A barcode as SVG, with the check digit worked out or verified for you.
barcode-generate