2022-09-16 03:51:46 +03:00
|
|
|
|
---
|
2022-11-19 03:36:06 +03:00
|
|
|
|
title: "➖ Git: Удалить ветку на сервере"
|
2022-09-16 03:51:46 +03:00
|
|
|
|
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
|
|
|
|
|
```
|