# .gitignore generator

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

- Endpoint: `POST https://setget.net/v1/tools/gitignore-generate` with JSON `{"input": {...}}`
- MCP: `run_tool` with `slug` = `gitignore-generate`
- Page: https://setget.net/tools/gitignore-generate

## Inputs

- `stacks` (required, array): What the project uses: python, node, java, go, rust, dotnet, php, ruby, cpp, swift, terraform, macos, windows, linux, vscode, jetbrains, vim, secrets.

## Example 1

```json
{"input":{"stacks":["rust","macos"]}}
```

Result:

```json
{"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}
```

## Example 2: A pattern both sections share (.env) is written once

```json
{"input":{"stacks":["python","secrets"]}}
```

**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.
