删除远程分支机构? [英] Deleting remote branches?
本文介绍了删除远程分支机构?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我运行git branch -a时,它会像这样打印出来,例如:
branch_a
remotes / origin / branch_a
几个问题:
- branch_a表示什么?
- remote / origin / branch_a表示什么?
- 如何删除远程/原产地/ branch_a?
解决方案
branch_a 表示您有一个名为 branch_a
的本地分支。
remotes / origin / branch_a
表示您有一个名为 origin
的远程,并且您正在跟踪 branch_a
在原点
远程。这不一定与你自己的 branch_a
有关,但它可能是( git branch -a
不说)
远程/源/ branch_a
是远程跟踪分支,因此如果您的 branch_a
设置为跟踪远程。如果没有,那么删除 origin
远程应删除它,或者您可以简单地 git branch -d remotes / origin / branch_a
。
When I run git branch -a, it prints out like this, for ex:
branch_a
remotes/origin/branch_a
Few questions:
- What does branch_a indicate?
- What does remotes/origin/branch_a indicate?
- How do I delete remotes/origin/branch_a?
解决方案
branch_a
indicates that you have a local branch calledbranch_a
.remotes/origin/branch_a
indicates that you have a remote calledorigin
, and you are tracking thebranch_a
within theorigin
remote. This isn't necessarily associated with your ownbranch_a
, but it probably is (git branch -a
doesn't say).- Since the
remotes/origin/branch_a
is a remote tracking branch, it's required if your ownbranch_a
is set up to track the remote. If not, then deleting theorigin
remote should remove it, or you might be able to simplygit branch -d remotes/origin/branch_a
.
这篇关于删除远程分支机构?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文