从已删除的远程分支从原始获取? [英] fetch from origin with deleted remote branches?

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

问题描述

当我执行 git fetch origin 并且origin有一个被删除的分支时,它似乎没有在我的仓库中更新它。当我做 git branch -r 时,它仍然显示 origin / DELETED_BRANCH

When I do git fetch origin and origin has a deleted branch, it doesn't seem to update it in my repository. When I do git branch -r it still shows origin/DELETED_BRANCH.

我该如何解决这个问题?

How can I fix this?

推荐答案

您需要执行以下操作:

You need to do the following

git fetch -p

将更新远程分支机构的本地数据库。

This will update the local database of remote branches.

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

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