删除远程分支机构? [英] Deleting remote branches?

查看:107
本文介绍了删除远程分支机构?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行git branch -a时,它会像这样打印出来,例如:

  branch_a 
remotes / origin / branch_a

几个问题:


  1. branch_a表示什么?

  2. remote / origin / branch_a表示什么?

  3. 如何删除远程/原产地/ 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:

    1. What does branch_a indicate?
    2. What does remotes/origin/branch_a indicate?
    3. How do I delete remotes/origin/branch_a?

    解决方案

    1. branch_a indicates that you have a local branch called branch_a.
    2. remotes/origin/branch_a indicates that you have a remote called origin, and you are tracking the branch_a within the origin remote. This isn't necessarily associated with your own branch_a, but it probably is (git branch -a doesn't say).
    3. Since the remotes/origin/branch_a is a remote tracking branch, it's required if your own branch_a is set up to track the remote. If not, then deleting the origin remote should remove it, or you might be able to simply git branch -d remotes/origin/branch_a.

    这篇关于删除远程分支机构?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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