Skip to content

Nothing to compare with

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.

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.

Name the branch your work starts from:

Terminal window
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.