How To Restore Deleted Git Branch In Azure DevOps

A branch in Azure DevOps is an isolated version of the code that can be used to work offline without impacting the other developers code in your team. Generally, we create a branch for developing a new feature or for fixing a bug/ defect.

I have created a Git Branch in Azure DevOps “ArunPotti_Test_Branch” and accidentally that branch got deleted by someone.

So, followed the below steps to recover the deleted branch.

Step 1: Browse Azure DevOps.

Step 2: Click on your project and Click on Branches under Repos.

How to restore a deleted Git Branch in Azure DevOps

Step 3: Provide your deleted branch name in the Search Textbox and click on Enter.

Note: Make sure to give your Branch Name in correct casing. Incorrect casing will not give the required result.

How to restore a deleted Git Branch in Azure DevOps

You can see the below result under Deleted branches.

How to restore a deleted Git Branch in Azure DevOps

Step 4: Click on the three Vertical dots and Click on the Restore branch.

How to restore a deleted Git Branch in Azure DevOps

Your deleted Branch will be restored.

How to restore a deleted Git Branch in Azure DevOps

Hope you have successfully restored your deleted branch in Azure DevOps.

Please like and share your valuable feedback on this article.


Next Recommended Reading CI/CD through Azure DevOps