[英]How to create merge pull request from Bitbucket of one branch to master branch in GitHub
How to create merge pull request from Bitbucket to github master branch.如何创建从 Bitbucket 到 github master 分支的合并拉取请求。
how to set origin and remote, from Bibucket master brnach want to merge into repositories in github master.如何设置origin和remote,来自Bibucket master brnach想合并到github master中的repositories。 thanks
谢谢
As suggested cloned both the repositories Bitbucket master and github master按照建议克隆了存储库 Bitbucket master 和 github master
[user@ip-***** ~]$ cd github_clone_copied
[user@ip-*****] github_clone_copied]$ ls -lrth
total 0
drwxrwxr-x 7 user user 73 Nov 16 11:22 web
drwxrwxr-x 4 user user 36 Nov 16 11:23 java
drwxrwxr-x 5 user user 54 Nov 16 11:24 out
drwxrwxr-x 5 user user 55 Nov 16 11:25 python
drwxrwxr-x 6 user user 151 Nov 16 11:26 service
drwxrwxr-x 15 user user 217 Nov 16 11:27 docker
drwxrwxr-x 4 user user 255 Nov 16 11:28 lib
[user@ip-********]github_clone_copied]$ pwd
/home/user/github_clone_copied
[user@ip-******** github_clone_copied]$ cd ..
[user@ip-******* ~]$ cd bitbucket_clone_copied/
[user@ip-******* bitbucket_clone_copied]$ ls -lrth
total 4.0K
drwxrwxr-x 14 user user 217 Nov 16 11:42 web
drwxrwxr-x 6 user user 103 Nov 16 11:42 java
drwxrwxr-x 5 user user 54 Nov 16 11:44 out
drwxrwxr-x 6 user user 60 Nov 16 11:45 web
drwxrwxr-x 5 user user 55 Nov 16 11:46 python
drwxrwxr-x 3 user user 4.0K Nov 16 11:47 lib
drwxrwxr-x 7 user user 151 Nov 16 11:48 service
Your situation isn't entirely clear, but copy-paste is probably the simplest approach.您的情况并不完全清楚,但复制粘贴可能是最简单的方法。 I don't know of a way to move code between two different repositories using only Git mechanisms.
我不知道仅使用 Git 机制在两个不同存储库之间移动代码的方法。 Here's the general idea:
这是一般的想法:
If the repos are actually clones (or extremely similar), you may be able to configure multiple remotes and pull-push directly.如果存储库实际上是克隆(或非常相似),您可以直接配置多个遥控器和拉推。 More on that .
更多关于这一点。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.