【问题标题】:git showing branches that are not on github anymore [duplicate]git显示不再在github上的分支[重复]
【发布时间】:2012-11-07 09:22:45
【问题描述】:

运行后

git fetch

我可以看到一些(不再)在 GitHub 上的分支(使用 git branch -a)。为什么是这样?我该如何解决这个问题?在 git-cola 中特别不舒服,我可以看到所有这些枯枝。

【问题讨论】:

标签: git github git-branch


【解决方案1】:

如果有从其他开发人员/机器上删除的“死”分支,您需要修剪本地版本的存储库:

git remote prune origin

【讨论】:

    猜你喜欢
    • 2020-08-26
    • 2021-07-20
    • 2012-02-04
    • 2011-01-03
    • 2018-07-15
    • 2013-05-08
    • 2021-04-07
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多