Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change branch name in Azure DevOps

Is there a way to change branch name in Azure DevOps. As shown in SS i have named my branch as Developer branch, now i want to change it to a specific request-id. Is this possible.

branches

like image 913
Salman Avatar asked Nov 22 '18 14:11

Salman


People also ask

Can we rename the branch name?

Git Branch Rename Command The steps to change a git branch name are: Rename the Git branch locally with the git branch -m new-branch-name command. Push the new branch to your GitHub or GitLab repo. Delete the branch with the old name from your remote repo.

How do I rename a branch in Azure Data Factory?

From the repo drop-down, select Manage repositories. Select the name of the repository from the Repositories list, choose the ... menu, and then choose Rename repository. Rename the repository by typing the repo's new name and selecting Rename.


1 Answers

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:

  1. open repo > Branches view.
  2. locate the old branch.
  3. hover over the old branch > ...(More) icon > + New Branch.
  4. enter the new branch name > Create branch.
  5. hover over the old branch > trash icon (Delete branch).
like image 76
Jayendran Avatar answered Oct 07 '22 00:10

Jayendran