【问题标题】:'git branch -a' still showing deleted remote branch in the remote repo?'git branch -a' 仍然在远程仓库中显示已删除的远程分支?
【发布时间】:2019-05-18 05:13:24
【问题描述】:

我已经上传(推送了整个本地分支)到远程仓库。 我已将它与 master 合并并在远程仓库中删除它(在 github.com 上)

运行git branch -a 仍会在控制台中显示:

$ git branch -a
* master
  remotes/hivauz/master
  remotes/hivauz/new_local_branch

什么原因,github需要时间更新吗?

【问题讨论】:

标签: git


【解决方案1】:

您必须运行 git fetch --all --prune 才能删除本地环境中的远程分支引用。

【讨论】:

  • 嗯它还在..奇怪
  • 让我纠正一下,以防万一:git fetch --all --prune
  • 它还在
猜你喜欢
  • 2011-07-02
  • 2021-04-15
  • 2012-09-01
  • 2012-02-04
  • 2013-03-25
  • 2012-05-25
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多