Git delete local and remote branch
First checkout a different branch than the one you want to delete, for example the master branch.
git checkout origin master
Solution 1
To delete your local and remote branch execute the following. “-r” stands for remote and “-d” for delete.
git branch -rd example
Solution 2
First delete the local branch:
git branch -d example
And after that also the remote branch:
git push origin :example
If you have unmerged stuff in the branch you want to delete, you’ll need to us: