First checkout a different branch than the one you want to delete, for example the master branch.
git checkout origin master
To delete your local and remote branch execute the following. “-r” stands for remote and “-d” for delete.
git branch -rd example
First delete the local branch:
git branch -d example
And after that also the remote branch:
git push origin :example
Copyright © PieterVogelaar.nl 2006 - 2020 All rights reserved | Disclaimer | RSS Feeds