Deletes a remote branch.
git push -d <remote> <branch>
to delete the specified remote <branch>
on the given <remote>
.git push -d <remote> <branch>
git checkout master
git push -d origin patch-1 # Deletes the `patch-1` remote branch
Would you like to help us improve 30 seconds of code?Take a quick survey
Git, Repository
Deletes all local merged branches.
Git, Repository
Deletes all detached branches.
Git, Repository
Resets the local master
branch to match the one on the remote.