gpt4 book ai didi

git - 'git branch -a' 仍然在远程仓库中显示已删除的远程分支?

转载 作者:太空狗 更新时间:2023-10-29 14:26:55 24 4
gpt4 key购买 nike

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

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

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

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

最佳答案

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

关于git - 'git branch -a' 仍然在远程仓库中显示已删除的远程分支?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53821960/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com