capabilities.work

Rename a branch

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

Get something done

Rename a branch

with GitHub · Software Construction Management

Use GitHub: its GitHub v3 REST Repos API lets you rename a branch in a single step (POST /repos/{owner}/{repo}/branches/{branch}/rename). capabilities.work can help you get signed up and connected.

  • How do I rename master to main in a repository?
  • Can I rename a branch through the API without recreating it?
Say it to your AI assistant
  • Rename branch {branch} in {owner}/{repo} to {new_name}.
  • Change the name of the {branch} branch on {owner}/{repo} to {new_name}.
For your developer

POST /repos/{owner}/{repo}/branches/{branch}/rename in GitHub v3 REST Repos API. Full spec on APIs.io.