# Not inside a Git repository

What "isn't inside a Git repository" means and how to fix it.

```text
error: /home/me/acme isn't inside a Git repository
hint: Run axle inside a Git repository, or leave out --affected and Git ranges such as [main].
```

```text
error: axle import needs a Git repository to import into
hint: Run git init in the repository's root first.
```

## Why it happens

`axle affected`, `axle why affected`, `--affected` and filters such as `[main]` ask Git what changed, `axle import` and `axle release` with `versions = "changes"` make a Git commit, and the repository's folder isn't tracked by Git.

## How to fix it

Run Axle inside a Git repository, or create one with `git init`. Everything else Axle does works without Git, so you can also leave these options out.
