English 中文(简体)
清理边远 外地办事处
原标题:Cleaning remote Git branches

我已经把特别志愿人员组织迁到Gite,可能是因为一些克隆技术,现在我留给一间看像样的分支的楼房。

BranchA
origin/BranchA
remotes/BranchA
remotes/origin/BranchA
remotes/origin/origin/BranchA

i. 同一处若干次列出。 我怎么能够清除这些东西。 存在并大体;50个分支机构根本不需要,其余部分则只好一次。

EDIT:

这正是偏僻地表现出来的。

Remote branches:
BranchA tracked
origin/BranchA tracked

............

Local branches configured for  git pull :
origin/BranchA merges with remote BranchA

............

Local refs configured for  git push :
BranchA pushes to BranchA (up to date)
origin/BranchA pushes to origin/BranchA (up to date)
最佳回答

您可以借助这一指挥,拆除这些分行:

git push origin :branch_name

删除<代码>BranchA 分支:

git push origin :BranchA

删除<代码>原文/BranchA 分支:

git push origin :origin/BranchA

或者,您可使用<代码>git Branch -dr BranchA等。

除<条码>BranchA和<条码>外,删除每一条。 您可能已删除了<条码>边远<>条码>,在这种情况下,您应删除<条码>中途遥远的“代码>代码>。

问题回答

暂无回答




相关问题
git confusion - cloning a repo is returning a past version

Im having some confusion with my git usage. I cloned a repo from one comp to the other, and the new clone is the state of the original that was active some time ago. So its cloning a past version. ...

Appropriate strategy for tagging and hotfixing with git

I was wondering if the strategy I m using for tagging and hotfixing tags (which then I use for deploying rails applications) with git is appropriate. For tagging I just tag a commit of the master ...

Tips on upgrading CVS to git/hg?

We still use CVS, I use git and hg for my personal use though I m still a novice at both, but I realize they re much more modern and better, faster, distributed, etc. It s just everyone is so ...

Using Git in a TFS shop

Using Git at home has spoiled me - I now find using TFS at work to be a bit of a drag and want to explore the possibility of using Git locally and syncing somehow with TFS. I figure there are a few ...

热门标签