While trying different branches, merging them and deleting them, the delete part still confuses me. I work with VS Code and I created a repository on GitHub. Creating new branches works totally fine and I understood the push and commit commands. But as soon I have merged my branch (name: branch2) to the main branch I can not find an easy way for deleting the not used branch2 local and remote.
What I have tried:
- Delete branch in GitHub: With git pull --prune I could achieve that my branch2 is not shown in GitHub and also the origin/branch2 in VS Code is gone. But my local saved branch2 in VS Code is still visible. 
- Delete branch in VS Code either with the command or in the source control section. With this I can delete my local branch 2, but it will not delete the origin/branch2 in GitHub. 
I am sure there is a way to delete the local branch and the remote origin branch in GitHub, but I could not find it yet.
 
     
    