Skip to content

Rename a Branch

Follow the steps below to update the name of a branch.

Renaming a branch can help keep your repository organized and make branch names more descriptive.

Steps to Rename a Branch

  1. Select the branch: Ensure the branch you want to rename is selected. If it is not active, switch to it first.
  2. Open branch options: Click the dropdown button next to the branch name to access its options. Branch Options
  3. Choose "Rename branch": From the dropdown menu, select the "Rename branch" option.
  4. Update the branch name: Enter the new name for the branch. Branch Options
  5. Save changes: Confirm and save the updated branch name.

Note: The name of the main branch cannot be changed.