Skip to content

No branch, tag or commit with that name

error: there is no branch, tag or commit named develop (from --base)
hint: Check the name, or fetch it first, for example with git fetch origin develop.

Axle was asked to compare with a branch, tag or commit that this clone doesn’t have. The message says where the name came from: --base, --head, AXLE_SCM_BASE, AXLE_SCM_HEAD, a filter such as [develop], or the branch a GitHub Actions pull request targets.

In CI, clones often hold only the commit being tested, so other branches are missing even though they exist on the server. When the clone is shallow, the hint says to fetch the whole history instead.

Check the spelling, or fetch the branch first:

Terminal window
git fetch origin develop

To compare with the remote copy, name it in full, such as --base origin/develop. On GitHub Actions, fetch-depth: 0 in actions/checkout fetches every branch and all of the history.