> For the complete documentation index, see [llms.txt](https://docs.quilt.bio/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.quilt.bio/quilt-python-sdk/advanced/.quiltignore.md).

# .quiltignore

`.quiltignore` keeps files out of a package. It uses the [`.gitignore` syntax](https://git-scm.com/docs/gitignore).

## QuiltSync and the `quilt` CLI

Three sets of rules apply, each overriding the one before it:

1. **Built-in rules**: common clutter, such as hidden folders (`.git/`, `.venv/`), OS files (`.DS_Store`), secrets (`.env`, `*.pem`) and caches (`node_modules/`). See the full list in **Settings** → **Ignore rules** → **Review…**, where you can also turn a rule off.
2. **Your rules**: a `.quiltignore` in the app's data folder (**Settings** → **Ignore rules** → **Open file**). It applies to every package on your computer.
3. **This package's .quiltignore**: the file at the top of the package folder. It travels with the package.

Use a `!` line to bring back a path that a weaker set ignores.

Built-in rules and your rules only keep out new files; files already in the package stay. The package's `.quiltignore` also removes matching files from the package on the next commit.

To bring back an ignored file or folder, choose **Stop ignoring** on its row, for this package or for all packages. `quilt status --ignored` lists each ignored path with the rule that ignored it.

## quilt3

`quilt3.Package.set_dir()` reads only the `.quiltignore` in the folder it packages. It matches each line as a shell-style wildcard and does not support `!` lines, comments or anchored paths such as `/build/`.

```bash
$ ls
foo.txt         bar.txt         baz.txt
$ echo foo.txt >> .quiltignore
$ python -c "import quilt3; print(quilt3.Package().set_dir('/', './'))"
(local Package)
 └─bar.txt
 └─baz.txt
 └─.quiltignore
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.quilt.bio/quilt-python-sdk/advanced/.quiltignore.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
