Quick summary
This tutorial shows how to rename a branch in GitLab using the git branch -m command in the CLI. In just a few steps, developers can update a branch name locally and confirm the change is reflected in their GitLab repository.
Steps
- In the CLI, run the command git branch -m followed by the current branch name (e.g., bug-A) and the new branch name (e.g., bug-B), then press Enter to execute the rename.
- Run the command git branch to list all branches and verify the rename was applied successfully.
- Confirm that the branch name (bug-A) has been renamed (bug-B) as reflected in the GitLab repository.



