迁移到github后,如何将存储库标记为github中的叉子?

发布于 2025-01-18 14:04:14 字数 524 浏览 4 评论 0原文

我有一个 main 存储库和一个 fork 存储库,在类似 GitHub 的 SCM 系统中管理。 现在,我已通过在 GitHub 中创建两个存储库 mainfork 将这两个存储库迁移到 GitHub,将它们作为远程存储库添加到我的本地存储库,并将整个历史记录推送到它们。到目前为止,一切都很好。

当我直接在 GitHub 上从 main 分叉 fork 时,fork 会在 GitHub UI 上标记为这样。

示例屏幕截图

我的问题是,我可以以某种方式连接 GitHub 中的存储库,使它们看起来就像在 GitHub 上分叉一样吗?

I have a main repository and a fork repository managed in a GitHub-like SCM system.
Now I've migrated both repositories to GitHub by creating two repos main and fork in GitHub, added them as remotes to my local repos and pushed the entire history to both of them. So far, so good.

When I would have forked fork from main directly on GitHub fork would be marked as such on the GitHub UI.

example screenshot

My question is, can I connect the repositories in GitHub somehow such that they appear as if forked on GitHub?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文