capabilities.work

Change the default branch for a scope

One step with Harness. We can help you get access.

Get something done

Change the default branch for a scope

with Harness
Works with AI assistants

Use Harness: its Harness Settings API lets you change the default branch for a scope in a single step (PATCH /code/api/v1/settings/general). Harness 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 change the default branch name used for new repositories?
  • Can I set a different default branch per project rather than account-wide?
Say it to your AI assistant
  • Set the default branch to {branch} for account {account}.
  • Update project {project} in account {account} to use {branch} as default branch.
For your developer

PATCH /code/api/v1/settings/general in Harness Settings API. Full spec on APIs.io.