gpt4 book ai didi

Why do my deleted branches on Github keep rcoming back?(为什么我在Github上被删除的分支总是回来?)

转载 作者:bug小助手 更新时间:2023-10-25 14:54:48 31 4
gpt4 key购买 nike



Deleting stale branches on Github seems simple, as does renaming branches. When I view my branches I have buttons for both. After I delete or rename a branch it deletes or renames appropriately after my action.

删除Github上陈旧的分支机构似乎很简单,重新命名分支机构也是如此。当我查看我的分支时,这两个按钮都有。在我删除或重命名分支之后,它会根据我的操作相应地删除或重命名。


My deleted branches keep coming back, however, and I also see both the old and the renamed branches. What could I be doing wrong to make this happen?

然而,我删除的分支不断地回来,我也看到了旧的和重新命名的分支。我到底做错了什么才能做到这一点呢?


更多回答

Since Git is a distributed version control system, branches that are deleted from github can still exist in clones of the repository. Depending on the operators' workflows, they could be pushing those branches back up to git.

由于Git是一个分布式版本控制系统,从GitHub中删除的分支仍然可以存在于存储库的克隆中。根据运营商的工作流程,他们可能会将这些分支机构推回GIT。

@erik258 Thanks for your help. Is all they need to do is pull first before pushing? Or do they need to do more than that?

@erik258感谢您的帮助。他们需要做的就是先拉再推吗?或者他们还需要做更多的事情吗?

see if they're doing something like git push --all origin which would push all branches . I would never run that command personally.

看看他们是否在做类似于Git推送的事情--All Origin会推送所有分支。我永远不会亲自掌管这个指挥部。

I'll send out an e-mail asking our developers if someone is pushing -all like this. Honestly, there's only 3 of us and I'm pretty sure I know the guy doing it.

我会发一封电子邮件询问我们的开发人员是否有人在推送--都是这样的。老实说,我们只有3个人,而且我很确定我认识做这件事的人。

优秀答案推荐
更多回答

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