Remove protection from a branch
One step with GitLab. We can help you get access.
Get something done
Remove protection from a branch
with GitLab · Software Construction Management
Works with AI assistants
Use GitLab: its GitLab Projects API lets you remove protection from a branch in a single step (PUT /api/v4/projects/{id}/repository/branches/{branch}/unprotect). 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 unprotect a branch so anyone with access can push to it?
- Can I lift branch protection from a single branch?
Say it to your AI assistant
- Unprotect branch {branch} in project {id}.
- Remove the protection rules from {branch} in repository {id}.
For your developer
PUT /api/v4/projects/{id}/repository/branches/{branch}/unprotect in GitLab Projects API. Full spec on APIs.io.