# A release needs a clean tree

What "the repository has changes that aren't committed" means for axle release and how to fix it.

```text
error: the repository has changes that aren't committed
hint: Commit or stash them, change files in .changes too, so the release commit holds only the release, then run axle release again.
```

## Why it happens

[`axle release`](https://axlers.dev/docs/reference/release.md) makes one commit with the new versions, changelogs and change files, and tags it. A tracked file with changes that aren't committed would end up in that commit, or be left out of the release it belongs to. Files Git doesn't track are fine, except change files in `.changes/`: commit those too, so the release deletes them in the same commit.

## How to fix it

Commit the changes, or stash them with `git stash`, then run `axle release` again. `axle release --dry-run` works with changes in the tree, since it writes nothing.
