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. <
I found a way to fix this. So you need to remove the remote that links to the Github repo, then add the remote again.
All the branches that are deleted from Github will no longer show up in vscode. Assuming that origin
is the name for the remote repo.
git remote remove origin
Then
git remote add origin git@github.com:your-username/repo-name.git