Skip to content

Instantly share code, notes, and snippets.

@cobysy
Created April 15, 2016 22:33
Show Gist options
  • Save cobysy/b1f3e363de58cec5e22f96a063d92e9d to your computer and use it in GitHub Desktop.
Save cobysy/b1f3e363de58cec5e22f96a063d92e9d to your computer and use it in GitHub Desktop.
Delete git branch in VSTS
Delete a Git branch both locally and remotely
To delete any branch from VSO, you have to enable Alternate Authentication Credentials
Open VSO web browser.
Click on your name in the top right
Click on My Profile
Click on Credentials
Configure Alternate Authentication Credentials
Now open Visual Studio
Connect VSO.
Click on Team Explorer
Click on Home
Click on Branches
Click on Actions
Click on Open Command prompt
Now run below command to delete branch from GIT
git push origin --delete <Branch Name>
@cobysy
Copy link
Author

cobysy commented Apr 15, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment