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
- Select the branch: Ensure the branch you want to rename is selected. If it is not active, switch to it first.
- Open branch options: Click the dropdown button next to the branch name to access its options.
- Choose "Rename branch": From the dropdown menu, select the "Rename branch" option.
- Update the branch name: Enter the new name for the branch.
- Save changes: Confirm and save the updated branch name.
Note: The name of the main branch cannot be changed.