Files
30-seconds-of-code/snippets/delete-remote-branch.md
Angelos Chalaris fb4b6fbc8e Update covers
2023-02-16 22:24:37 +02:00

437 B

title, tags, cover, firstSeen, lastUpdated
title tags cover firstSeen lastUpdated
Delete a remote branch repository,branch waves-from-above 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