Go to your Azure DevOps project → Repos → Branches.
Find the branch you want to rename.
Click the … (ellipsis) next to the branch name.
Select Rename.
Enter the new branch name and save.
✅ Note: This works for Azure DevOps hosted Git repos.