Create a new branch from a ref
One step with GitLab. We can help you get access.
Get something done
Create a new branch from a ref
with GitLab · Software Construction Management
Works with AI assistants
Use GitLab: its GitLab Projects API lets you create a new branch from a ref in a single step (POST /api/v4/projects/{id}/repository/branches). GitLab also has an MCP server, so an AI assistant like Claude or ChatGPT can do it for you. capabilities.work can help you get signed up and connected.
- How do I create a new branch from main or a specific commit?
- Can I branch off a tag or commit SHA instead of another branch?
Say it to your AI assistant
- Create branch {branch} from {ref} in project {id}.
- Start a new branch {branch} in repository {id} off commit {ref}.
For your developer
POST /api/v4/projects/{id}/repository/branches in GitLab Projects API. Full spec on APIs.io.