如何删除遥控器/原点/ {分支}? [英] How to delete remotes/origin/{branch}?

查看:106
本文介绍了如何删除遥控器/原点/ {分支}?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用: git

How do you delete a remotes/origin/{branch}?

远程修剪来源

use: git remote prune origin

或使用 git remote prune origin --dry-run to预览哪些分支将被删除。

or use git remote prune origin --dry-run to preview what branches will be removed.

git help remote

修剪

删除所有旧的远程追踪分支。这些陈旧的分支已经从引用的远程存储库中删除,但仍在本地可用remotes /\".

prune
Deletes all stale remote-tracking branches under . These stale branches have already been removed from the remote repository referenced by , but are still locally available in "remotes/".

使用--dry-run选项,报告分行将被修剪,但实际上并没有修剪它们。

With --dry-run option, report what branches will be pruned, but do not actually prune them.

这篇关于如何删除遥控器/原点/ {分支}?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆