# Nothing to compare with

What "there is no main or master branch" means and how to fix it.

```text
error: there is no main or master branch, locally or on origin, to compare with
hint: Name the branch to compare with, such as --base develop, AXLE_SCM_BASE or base in axle.toml.
```

## Why it happens

No branch to compare with was given, so Axle looked for the default branch of `origin`, then `main`, `origin/main`, `master` and `origin/master`, and none of them exists. A repository with no remote, or a CI clone that didn't record which branch is the default, has no default branch for Axle to find.

## How to fix it

Name the branch your work starts from:

```sh
axle affected --base develop
```

To set it once for the repository, add `base = "develop"` to the root `axle.toml`. For one CI job, set `AXLE_SCM_BASE=develop`. See [how the base is chosen](https://axlers.dev/docs/reference/affected.md#what-is-compared).
