Files
30-seconds-of-code/snippets/delete-remote-branch.md
2022-03-22 12:02:38 +02:00

451 B

title, tags, expertise, author, firstSeen, lastUpdated
title tags expertise author firstSeen lastUpdated
Delete a remote branch repository,branch intermediate maciv 2021-04-08T19:42:01+03:00 2021-04-13T21:10:59+03:00

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