简体   繁体   English

从Bitbucket的上游回购创建请求请求

[英]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确实如此。

The usual way 通常的方式

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. 通常,您只需从上游存储库中提取,合并这些更改,然后推入派生的存储库中即可。

Frowned upon - set up a pair of remotes 皱眉-设置一对遥控器

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.

相关问题 GitHub:如何从forked存储库创建pull请求到上游repo只包括一些过去的提交 - GitHub: How to create pull request from forked repository to upstream repo only including some past commits 从命令行在 Bitbucket 上创建拉取请求 - Create a Pull Request on Bitbucket from the command line 以编程方式在 Bitbucket 上创建拉取请求? - Programmatically create Pull Request on Bitbucket? 有什么方法可以将拉取请求从 bitbucket hg repo 迁移到 github git repo? - Is there any way to migrate a pull request from a bitbucket hg repo to a github git repo? 如何针对派生仓库中两个分支之间的差异的上游基础创建拉取请求? - How do I create a pull request against an upstream base that is the difference between two branches in my forked repo? 如何从github上游拉取拉取请求 - How to pull a pull request from upstream in github Bitbucket Pull Request,其中源回购是forkee,目标回购是fork - Bitbucket Pull Request where source repo is forkee and destination repo is fork 无法从 bitbucket 管道创建拉取请求 - can't create pull request from bitbucket pipelines 如何从bitbucket管道中的私人仓库中提取? - How to pull from private repo in a bitbucket pipeline? 是否可以从Bitbucket拉取请求创建Heroku评论应用程序 - Is it possible to create a Heroku review app from a Bitbucket pull request
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM