Delete a local branch
Removes a branch that is already pushed and merged with remote:
git branch -d <branch_name>
Removes a branch regardless whether its already pushed and merged with remote:
git branch -D <branch_name>
Delete a remote branch
git push <remote_name> –delete <branch_name>
Leave A Comment