Skip to content

Not a valid branch name

What the git_branch_invalid error from the Perafly API means and what to do about it.

On this page
Code
git_branch_invalid
HTTP status
400
Group
Git

What it means

The branch name breaks Git's rules (no .., spaces or ~^:?*[\).

What to do

Use the branch name exactly as it is in the repository.

Read more: Git and CI

Example response

This is the shape of the answer. title and detail are in English, or in Turkish with Accept-Language: tr; detail appears when there's more to say.

{
  "type": "https://perafly.com/docs/errors/git_branch_invalid",
  "title": "Not a valid branch name",
  "status": 400,
  "code": "git_branch_invalid",
  "instance": "/v1/…",
  "requestId": "req_…"
}

All error codes