[英]Create Pull Request From Upstream Repo in Bitbucket
I am using BitBucket to host my project. 我正在使用BitBucket托管我的项目。
I have a project with a fork - I develop niche functionality in that fork and core functionality in the main upstream repository. 我有一个带有叉子的项目-我在那个叉子中开发了利基功能,并在主要的上游存储库中开发了核心功能。 Whenever I create some functionality in the fork that I want in the core I can create a pull request and merge. 每当我在核心中要在fork中创建某些功能时,我都可以创建请求请求并合并。 However I can't seem to be able to create a pull request going from the upstream repo to my downstream one. 但是我似乎无法创建从上游存储库到下游存储库的拉取请求。
Do you know if this functionality is available in BitBucket? 您知道BitBucket中是否提供此功能吗?
Not BitBucket per se, but Git does. 本身不是BitBucket,但Git确实如此。
Quoting @Poke 's comment: 引用@Poke的评论:
Usually, you would simply pull from the upstream repository, merge those changes in and then push into your forked repository. 通常,您只需从上游存储库中提取,合并这些更改,然后推入派生的存储库中即可。
When you fork/clone, you usually set up a remote as well, that points to that other repository. 在分叉/克隆时,通常还需要设置一个指向其他存储库的远程目录。 This is why one repository acts as an "upstream" for the other. 这就是为什么一个存储库充当另一个存储库的“上游”的原因。 Of course, you may have two "upstreams", if you wish. 当然,如果愿意,您可能有两个“上游”。 You just define "two-way" remotes (fork has remote "main", main gets remote "fork"). 您只需定义“双向”遥控器(叉具有远程“ main”,main获得远程“ fork”)。
This, however, is rather frowned upon ( discouraged may be a word you may hear as well, and sometimes even forbidden I'd expect ) due to flow with which one often works with Git. 但是,由于人们经常与Git一起工作,这一点很令人讨厌( 您可能也会听到不高兴的单词,有时我甚至希望禁止这样做 )。 Granted, there's more than one way to skin a cat, but folks usually like their main repo being somewhat EXTRAordinary, that is without having remotes. 当然,有多种方法可以给猫咪剥皮,但人们通常喜欢他们的主要回购商品有些特别,这不需要遥控器。 There are also voices who will tell you that having that window open will mean it will be used and everybody will be pushing/pulling to everybody, which is bloody chaos and you can't know what is what anymore. 还有声音会告诉您,打开该窗口将意味着它将被使用,并且每个人都将向所有人推拉,这真是血腥的混乱,您不知道这是什么了。
Nevertheless, you can do it so heed the voices or pay them no mind, whichever floats your boat. 但是,您可以这样做,以便无论声音如何飘动,您都可以留心声音或不理会声音。 ;-) ;-)
Let me know if you'd like to know how to set remote. 如果您想知道如何设置遥控器,请告诉我。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.