Files
30-seconds-of-code/snippets/git/s/delete-remote-branch.md
Angelos Chalaris 4d0316a062 Update covers
2023-05-07 22:25:00 +03:00

22 lines
431 B
Markdown

---
title: Delete a remote branch
type: snippet
language: git
tags: [repository,branch]
cover: tranquil-desktop
dateModified: 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>`.
```shell
git push -d <remote> <branch>
```
```shell
git checkout master
git push -d origin patch-1 # Deletes the `patch-1` remote branch
```