Check if a branch exists

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://bump.sh/demo/doc/gitlab/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
"Gitlab (Unofficial) MCP server": {
  "url": "https://bump.sh/demo/doc/gitlab/mcp"
}
Close
HEAD /projects/{id}/repository/branches/{branch}

Check if a branch exists

Path parameters

Responses

  • 204

    No Content

  • 404

    Not Found

HEAD /projects/{id}/repository/branches/{branch}
curl \
 --request HEAD 'https://www.gitlab.com/api/v4/projects/gitlab-org/gitlab/repository/branches/{branch}' \
 --header "Private-Token: $API_KEY"