Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Azure DevOps Server 2019
Visual Studio 2019 | Visual Studio 2022
This article describes how to delete a Git branch by using two different methods: in Visual Studio and from the command line.
Note
Deleting a branch in your local repo doesn't remove the branch on the remote.
Prerequisites
Category | Requirements |
---|---|
Project access | Member of a project. |
Permissions | - View code: At least Basic access. - Clone or contribute to code: Member of the Contributors security group or corresponding permissions in the project. |
Services | Repos enabled. |
Delete branch
View your repo's branches by selecting Repos > Branches while viewing your repo on the web.
Select the More options button at the end of the row of the branch you want to delete.
In the options menu, select Delete branch.
In the Delete branch dialog box, select Delete.