Blog/content/posts/2022/git/remove-remote-branch.md

24 lines
550 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: " Git: Удалить ветку на сервере"
date: 2022-09-16T03:48:34+03:00
draft: false
tags: [git, tips]
---
Для удаления определённой ветки на сервере Git, необходимо выполнить команду:
```sh
git push <remote_name> --delete <branch_name>
```
Например:
```text
git push origin --delete gh-pages
remote: . Processing 1 references
remote: Processed 1 references in total
To git.a2s.su:iiiypuk/minecraft-launcher.git
- [deleted] gh-pages
```