从GitHub分叉到Bitbucket

编程入门 行业动态 更新时间:2024-10-25 20:19:55
本文介绍了从GitHub分叉到Bitbucket的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

谢谢!

解决方案

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

$ git clone github/cakephp/cakephp $ git push git@bitbucket: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 github/cakephp/cakephp $ git push git@bitbucket: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

本文发布于:2023-07-04 17:24:44,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:GitHub   Bitbucket

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!