手动设置'从'分叉到GitHub项目 [英] Manually set 'forked from' to GitHub project

查看:168
本文介绍了手动设置'从'分叉到GitHub项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的项目A(托管在GitHub上)以某种方式(不知道如何)忘记了它最初是从另一个开源项目B中分离出来的。'忘记',我的意思是,在创建请求时,我不能选择B发送拉取请求的目标。我有告诉GitHub A是B的分叉吗? (我可以通过将B分解为A',然后将A合并为A'并将PR从A'发送给B来创建PR,这自然而然地起作用,但是自然地,我不喜欢它)

解决方案

不,没有办法将现有的仓库变成叉子。您可以永久切换到 A'并放弃 A ,这是一次性过程。并且不需要将 A 合并到 A'中;您可以简单地将整个 A 推入 A'中。


My project A (hosted on GitHub) somehow (not sure how) forgot that it was originally forked from another open-source project B. By 'forgot', I mean, when creating a pull request, I cannot choose B as a target for sending the pull request. Is there some way I tell GitHub that A is a fork of B?

(I can create a PR by forking B into A', then merging A into A' and sending the PR from A' to B which naturally works but, naturally, I don't like it)

解决方案

No, there is no way to turn an existing repo into a fork. You can permanently switch to A' and abandon A, it's a one-time procedure. And there is no need to merge A into A'; you can simply push the whole A into A' instead.

这篇关于手动设置'从'分叉到GitHub项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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