Delete a remote branch

Isabelle Viktoria Maciohsek · Git, Repository, Branch · Apr 13, 2021

Deletes a remote branch.

  • Use 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

Recommended snippets