从GitHub分叉到Bitbucket [英] Forking from GitHub to Bitbucket

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

问题描述

我正在开发一个基于 CakePHP 的项目,该项目位于 GitHub 上。 我的项目 Bitbucket 上托管。他们都使用 git 。基本上我想在我的Bitbucket存储库中创建一个'fork'(我不知道我是否使用了正确的术语,因为我是 的新手),按顺序无需下载所有CakePHP zip / tar并替换文件夹,然后提交并推送,但可能使用合并(?)。

谢谢!

解决方案

现在不可能在不同网站上发送拉请求。我在Bitbucket问题跟踪器中为此添加了一项功能请求:#3288 。如果你想跟踪这一点,我建议你自己添加一个关注者。然而,你仍然可以将源代码从GitHub移动到Bitbucket,而无需下载任何zip文件或tar包。你从GitHub创建一个克隆并推送到Bitbucket:

  $ git clone https://github.com/cakephp/cakephp 
$ git push git@bitbucket.org:mg / cakephp.git master

我创建了 mg / cakephp 作为Bitbucket中的空Git存储库。这样,您可以将变更集从GitHub推送到Bitbucket。


I'm working on a project based on CakePHP, that's hosted on GitHub. My project is being hosted on Bitbucket. Both of them use git. Basically I'd like to create a ‘fork’ (I don't know if I'm using the right terms, since I'm new to git) of CakePHP in my Bitbucket repository, in order to be able to get the updates without the need to download all the CakePHP zip/tar and replace the folder, then commit and push, but maybe with a ‘merge’(?).

Thank you!

解决方案

It's not possible to send "pull request" across different sites today. I've added a feature request for this in the Bitbucket issue tracker: #3288. I suggest you add yourself as a follower if you want to track this.

However, you can still move the source from GitHub to Bitbucket without having to download any zip files or tarballs. You make a clone from GitHub and push to Bitbucket:

$ git clone https://github.com/cakephp/cakephp
$ git push git@bitbucket.org:mg/cakephp.git master

I created mg/cakephp as an empty Git repository in Bitbucket first. That way you can push/pull changesets from GitHub to Bitbucket.

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

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