In VSCode, after I do a pull request and delete the branch on GitHub, that branch still shows up in Visual Studio Code. If I select the branch, it gives an Error, as expected. <
Branches removed from GitHub are well... just removed from GitHub. You still have local copy of branch on your machine. To delete local branch run git branch -d the_local_branch
. There is no command in VS Code to do so, but you can start terminal in VSCode using View: Toggle Integrated Terminal
command and run command from it.
For more information about branch management please visit git documentation - https://git-scm.com/book/be/v2/Git-Branching-Branch-Management