Delete local and remote git branch
Deletes a branch both locally and remotely. The first command deletes the remote branch, whereas the second command deletes the command locally.
Authored by: Matthew Rankinremote_name
branch_name
Command
Copy
git push -d remote_name branch_name
git branch -d branch_name
Tags
Edit in GitHub
Copied