Unfortunately, you are not able to rename a branch. However, you can create a new branch from the branch which you want to rename then you can delete that branch.
As per the design, the rename of azure repo branches is not implemented. You can see this existing similar thread
Microsoft's documentation page "Rename old branches" gives the following instructions:
You can do this by following these steps:
Unfortunately, you will not be able to rename a branch. However, you can create a new branch from the branch which you want to rename then you can delete that branch.
Steps:
Best way to do is, create a new branch from the original branch, give the new name to it and then delete the original branch.
For example: Rename Branch A to B
Note: If you are following this steps, you will have the full history of the branch and also you can rename the branch. You will not have the history of the branch if you are deleting the branch and then creating the new branch.
There is no direct way to delete the branch in azure DevOps but the alternate is to delete the branch and rename it.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.